大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0079 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createCharacter(); this.createEaseFunctionList(); this.createDurationCrontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); ch...
来源: Laya2.0_示例 发布时间: 20250223
... constructor() { Laya3D.init(this.width, this.height); Laya.stage.setScreenSize(this.width, this.height); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.stage.screenMode...
来源: Laya_社区 发布时间: 20200119
...闪的也有问题,,, //绘制一个蓝色方块,不被抠图 this.gameContainer = new Sprite(); Laya.stage.addChild(this.gameContainer); // 引导所在容器 this.guideContainer = new Sprite(); // 设置容器为画布缓存 this.guideContainer.cacheAs = "bitmap"; Laya.stage.addChild(th...
来源: Laya_社区 发布时间: 20180116
...e: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded)); //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian =...
来源: Laya_社区 发布时间: 20180210
...kin 大于512 的释放问题 setData(type: number, fight: number): void { this.imgItem = new Image(); this.imgItem.skin = 'forging/000' + (type + 1) + '.png'; this.imgItem.y = type * 231; this.name = type + ""; this.showFight(fight); } showFight(num: number): void { if (this._sprFight) this._sprFig...
来源: Laya_社区 发布时间: 20170916
...(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.po...
来源: Laya_示例 发布时间: 20250223
Button点击函数逻辑bug onMouse(e) { if (this.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state...
来源: Laya_社区 发布时间: 20191112
...}); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下 function onLoaded(){ ...
来源: Laya_社区 发布时间: 20160801
...| !msg.data) return; var data: any = msg.data; if (this.disableInput && data) { this.event(Event.MESSAGE, data); return; } if (this._input.length > 0 && this._input.bytesAvailable < 1) { ...
来源: Laya_社区 发布时间: 20220822
...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...
来源: Laya_社区 发布时间: 20170215