大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...ent.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return btn; } onLoaded(){ for (let index = 0; index = ["res/button.png", "res/button.png", "res/button.png"]; private nameArr:Array = ["canvas截图","sprite截图","清理"]; private _canvas:...
来源: Laya2.0_示例 发布时间: 20241118
... let boy1 = new Image(); boy1.skin = "res/cartoonCharacters/1.png"; boy1.top = 0; boy1.right = 0; boy1.on("click", this, this.onBoyClick); Laya.stage.addChild(boy1); //实例一个小人,放到右下角,并相对布局 let boy2 = new Image(); boy2.skin = "res/cartoonCharacters/2.png"; boy2.botto...
来源: Laya2.0_示例 发布时间: 20241118
...击屏幕产生新的小球刚体,击向bridge的随机位置")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physics_Physics_Bridge();import { Laya } from "...
来源: Laya2.0_示例 发布时间: 20241118
... */ this.msgIdNow=1; /** 滚动条效果是否停止 */ this.scrollBarIsStop=false; /** 移动前的上次坐标位置 */ this.moveLastPos = null; /** 列表单元是否已打开 */ this.itemIsOpen=false; /**展开的单元格索引ID */ this.itemOpenId=-1; /**展开的单元格对象 */ this.opened...
来源: Laya2.0_示例 发布时间: 20241118
...ement("div"); let style = mapDiv.style; style.position = "absolute"; style.top = Laya.stage.height / Browser.pixelRatio + "px"; style.left = "0px"; style.width = Browser.width / Browser.pixelRatio + "px"; style.height = (Browser.height - Laya.stage.height) / Browser.pixelRatio + "px"; Browser.docume...
来源: Laya2.0_示例 发布时间: 20241118
...new Laya.Label("双击屏幕,将会产生100个新的小刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.totalBox += 100; }); Laya.Laya.timer.frameLoop(1, this, this.addMiniBox); } dispose() { ...
来源: Laya2.0_示例 发布时间: 20241118
...机器人向相反方向运动\n单击产生新的小球刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(this.label); } } cla...
来源: Laya2.0_示例 发布时间: 20241118