大约有 747 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(538) Laya2.0_文档(76) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(25) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); } /***加载资源完成***/ private function onSkinLoadComplete(e:*=null):void { //创建垂直滚动条 createVScroller(); } /***创建垂直滚动条***/ privat...
来源: Laya2.0_文档 发布时间: 20210715
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); } /***加载资源完成***/ private function onSkinLoadComplete(e:*=null):void { //创建水平滚动条 createHScroller(); } /***创建水平滚动条***/ privat...
来源: Laya2.0_文档 发布时间: 20210714
...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...
来源: Laya2.0_文档 发布时间: 20210715
..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...
来源: Laya3.0_文档 发布时间: 20251010
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建水平滚动条 createHScroller(); } /***创建水平滚动条***/ function createHScrolle...
来源: Laya2.0_文档 发布时间: 20210714
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建垂直滚动条 createVScroller(); } /***创建水平滚动条***/ function createVScrolle...
来源: Laya2.0_文档 发布时间: 20210715
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按...
来源: Laya2.0_文档 发布时间: 20210715
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"...
来源: Laya2.0_文档 发布时间: 20210714
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage...
来源: Laya2.0_文档 发布时间: 20210715
...g/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.wid...
来源: Laya2.0_文档 发布时间: 20210714