大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya_示例(51) Laya3.0_文档(46) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...
来源: Laya_社区 发布时间: 20180709
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...
来源: Laya3.0_文档 发布时间: 20230922
...ad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded() { Laya.stage.addChild(new GolfMainUI()); } 附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180627
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function cre...
来源: Laya2.0_文档 发布时间: 20210714
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...
来源: Laya3.0_文档 发布时间: 20230922
... = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.add...
来源: Laya3.0_文档 发布时间: 20230303
...showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170826
...450; this._gridHeight = 450; this._jsonLoader = null; this._loader = null; this._tileSetArray = []; this._currTileSet = null; this._completeHandler = null; this._mapRect = ne...
来源: Laya_社区 发布时间: 20220627
...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...
来源: Laya_社区 发布时间: 20180905
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.a...
来源: Laya2.0_文档 发布时间: 20210715