大约有 246 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
...用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this...
来源: Laya3.0_文档 发布时间: 20251010
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...
来源: Laya3.0_api 发布时间: 20231115
... "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: Laya.TextInput = this.createInput(this.skins[i]); input...
来源: Laya3.0_文档 发布时间: 20251010
...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...
来源: Laya_社区 发布时间: 20190307
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let tabA: Laya.Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#33...
来源: Laya3.0_文档 发布时间: 20251010
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new Laya.ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox...
来源: Laya3.0_文档 发布时间: 20251010
...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(); }); } private onCheckBoxSkinLoaded(e: any = null): void { let cb: Laya.CheckBox; for (let i: number = 0; i < this.COL_AMOUNT; ++i) { for (let j: number =...
来源: Laya3.0_文档 发布时间: 20251010
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","la...
来源: Laya3.0_api 发布时间: 20231115
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png"...
来源: Laya3.0_api 发布时间: 20231115
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin]).then( ()=>{ this.onSkinLoaded(); } ); } private onSkinLoaded(e: any = null): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.creat...
来源: Laya3.0_文档 发布时间: 20251010