大约有 580 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(372) Laya2.0_文档(74) Laya_示例(51) Laya2.0_示例(39) Laya3.0_文档(34) Laya3.0_api(8) Laya2.0_api(2)
...Color = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //...
来源: Laya2.0_文档 发布时间: 20210714
...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
...res/ui/radioButton (2).png", "resources/res/ui/radioButton (3).png"]; Laya.loader.load(this.skins).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number = 0; i < this.skins.length; ++i) { let rg: Laya.RadioGroup = this.createRadioGroup(this....
来源: Laya3.0_文档 发布时间: 20251016
...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
...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...
来源: Laya_社区 发布时间: 20210111
...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bol...
来源: Laya3.0_文档 发布时间: 20251010
...代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.ini...
来源: Laya_社区 发布时间: 20180529
...性后,icon就没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); ...
来源: Laya_社区 发布时间: 20180718
...大效果点击的时候按钮位移动了是否是我做法有问题 Laya.loader.create 不会反馈失败状态跟描述不符合 问题状态 最新活动: 2020-09-17 11:28 浏览: 411 关注: 1 人
来源: Laya_社区 发布时间: 20200917