大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...ht; var loading_array = []; for(var i = 1; i < 28; i++ ){ loading_array.push('loading/'+ i +'@2x.png',) } Laya.Animation.createFrames(loading_array, 'loading') this.fly = new Laya.Animation(); this.fly.play(0, true, 'loading') this.bounds = this.fly.getGraphicBounds(); this.fly.pivot(this.bounds....
来源: Laya_社区 发布时间: 20171107
...Arr[i].baseId.toString()); //装备类型分类再显示 if(itemlo) { data.push({itemImg:""+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-...
来源: Laya_社区 发布时间: 20180321
...要在_showGridList里添加,具体代码如下 testLayer._showGridList.push(this.tMapPlayer); 如果使用ts的话还会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上 _showGridList: Array<any>;即可 wu语 •...
来源: Laya_社区 发布时间: 20170627
... (comp._isScript())&& (activeChangeScripts.push(comp)); } } this._onActive(); for (i=0,n=this._children.length;i < n;i++){ var child=this._children[i]; ...
来源: Laya_社区 发布时间: 20190730
...var i =0;i<剩下关数;i++){ if(i != 随机数){ 新的未过的关数.push(未过的关数[i]); } } 未过的关数 = 新的未过的关数; document.location.href="第" + 随机数 + "关.html?数据=需要传的数据"; } 2018-06-19 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180615
...后就只有一模型出现了! for(var i=0;i<2;i++){ this.createmesh.push(i); this.createmesh[i]=new CreateMesh(); this.createmesh[i].init(); } 就是说我的LH这2个模型,里面没有子 模型,都只有一个模型。只是场景里同时加载2 次同样的模型时, 就会只出...
来源: Laya_社区 发布时间: 20180127
...h.addComponent(SkinAnimations); this.meshes.push(mesh); } this.switchAnimation('idle'); } private switchAnimation(name:string) { console.log('switchAnimation: ' + this.me...
来源: Laya_社区 发布时间: 20170608
...标移动时触发的mousemove事件 function mousemove(){ point.push({ x:Laya.stage.mouseX, y:Laya.stage.mouseY, time:Date.now(), });//给point集合添加一个object,带有当前的鼠标位置和当前的时间 }; //鼠标移动...
来源: Laya_社区 发布时间: 20171018
...和动画图集打包前的资源命名对应起来 urls.push(aniName + i + ".png"); } return urls; } 附件 : --> MyError1.zip 2017-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20170821
...} } } onkeydown(e){ if(this.keyList.indexOf(e.keyCode)<0){ this.keyList.push(e.keyCode); } } loop(){ if(this.sp.x!=this.next_x||this.sp.y!=this.next_y){ if(this.sp.x!=this.next_x){ if(this.next_x>this.sp.x){ this.sp.x +=5; }else{ this.sp.x -=5; } }else{ if(this.next_y>this.sp.y){ this.sp.y ...
来源: Laya_社区 发布时间: 20171125