大约有 13 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0025 秒)
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_Tree { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV ...
来源: Laya2.0_示例 发布时间: 20251130
.../ 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); // // 创建显示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, this.onOrientationChange); } // 方位指示器指向当前所朝方位 createCompass() { const Sprite = ...
来源: Laya2.0_示例 发布时间: 20251130
...= 200, VERTICAL_SPACING = 100, X_OFFSET = 100, Y_OFFSET = 50, skins; class UI_CheckBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.al...
来源: Laya2.0_示例 发布时间: 20251130
...高效。let SPACING = 150, X_OFFSET = 200, Y_OFFSET = 200, skins; class UI_RadioGroup { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.al...
来源: Laya2.0_示例 发布时间: 20251130
...开发语言、LayaAirIDE让项目开发更高效。let buttonSkin = "res/ui/button-7.png", clipSkin = "res/ui/num0-9.png", bgSkin = "res/ui/coutDown.png", currFrame; class UI_Clip { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Lay...
来源: Laya2.0_示例 发布时间: 20251130
...Draw"; import { Stat } from "laya/utils/Stat"; import { Label } from "laya/ui/Label"; import { Event } from "laya/events/Event"; export class Physics_Physics_Tumbler { private count = 0; private box: Sprite; private totalBox = 200; private label: Label; Main: typeof Main = null; constructor(maincls:...
来源: Laya2.0_示例 发布时间: 20251130
... 'QuadInOut'); data.push('quartIn', 'quartOut', 'quartInOut'); data.push('quintIn', 'quintOut', 'quintInOut'); data.push('sineIn', 'sineOut', 'sineInOut'); data.push('strongIn', 'strongOut', 'strongInOut'); easeFunctionsList.array = data; } renderList(item) { item.setLabel(item.dataSource); } onEase...
来源: Laya2.0_示例 发布时间: 20251130
...NTAL_SPACING = 200, VERTICAL_SPACING = 100, xOffset, yOffset, skins; class UI_Button { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...
来源: Laya2.0_示例 发布时间: 20251130
...G = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.align...
来源: Laya2.0_示例 发布时间: 20251130
...t { RigidBody } from "laya/physics/RigidBody"; import { Label } from "laya/ui/Label"; import { Stat } from "laya/utils/Stat"; import { WebGL } from "laya/webgl/WebGL"; import { Main } from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: ...
来源: Laya2.0_示例 发布时间: 20251130