大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
...文件(组合) let tasks:Array<Promise<any>> = []; tasks.push(Laya.loader.load(url)); tasks.push(Laya.loader.load(url2)); Promise.all(tasks).then((res:Array<any>)=> { //用于异步加载 }); 1.4 Texture和Texture2D的问题 同一个资源地址,无论是加载Texture还...
来源: Laya3.0_文档 发布时间: 20251010
....length; index < len; index++) { muduleName = mNames[index]; uiResArray.push({ url: bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName), type: Laya.Loader.ATLAS }); } Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted, [className]), Laya.Handler.creat...
来源: Laya_社区 发布时间: 20170905
...一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给list添加渲染函数 this.list.renderHandler = new Handler(this, onListRender); } //通过渲染函数为Bt...
来源: Laya_社区 发布时间: 20170513
...Laya.Sprite(); ball .graphics.drawRect( 0,0,140,140,"#d9d919"); this.balls.push( ball ); return ball; } } new TexasMain(); [/i][/i] 附件 : --> 不明抖动.rar 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...
来源: Laya_社区 发布时间: 20180226
...wInformationMessage('build template complete.'); }); context.subscriptions.push(disposable); } exports.activate = activate; function deactivate() { } exports.deactivate = deactivate; 问题来了,在layaide中安装成功,运行失败,无法正常使用。 附件后缀名改成vsix即可直接...
来源: Laya_社区 发布时间: 20180728
...atlas.file)) { allatlas[element.atlas.file] = element.atlas.file; loadData.push({ url: element.atlas.file, type: Laya.Loader.IMAGE }); } } } if (otherLoadData && otherLoadData.length > 0) { loadData = loadData.concat(otherLoadData); } for (var i = 0; i < loadData.length; i++) { if (Obj...
来源: Laya_社区 发布时间: 20191107
...ents.Event.COMPLETE*/"complete",content); resInfo.offAll(); this._infoPool.push(resInfo); this._statInfo.loaded++; this.event(/*laya.events.Event.PROGRESS*/"progress",this.getProgress()); } 调试结果 (no filename):1 //res/Bag.json [21357]:undefined c.warn @ (no filename):1 (no filename):1 url:...
来源: Laya_社区 发布时间: 20200429
...lt;len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(p); _path.addChild(p); } //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-1)*PATH_LEN,58); btn_start.clickHandler = new Handler(this,StartMove,[len]); } private function StartMove(len:int):void ...
来源: Laya_社区 发布时间: 20171113
...dler =new Laya.Handler(this,this.updateItem); this.listArr.push(list); //------------------------------------------------------------------------------ updateItem(cell:Item,index:number){ var img1 = cell.getChildByName("img1") as Laya.Image; var img...
来源: Laya_社区 发布时间: 20190522
...nOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text...
来源: Laya_社区 发布时间: 20171202