大约有 297 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0172 秒)
...new Laya.Sprite(); //画五角星 var path: Array<number> = []; path.push(0, -130);//五角星A点坐标 path.push(33, -33);//五角星B点坐标 path.push(137, -30);//五角星C点坐标 path.push(55, 32);//五角星D点坐标 path.push(85, 130);//五角星E点坐标 path.push(0, 73);//五角...
来源: Laya3.0_文档 发布时间: 20251010
...indexOf(key); if (index >= 0) { _values[index] = value; return; } _keys.push(key); _values.push(value); ++_lenght; } /** * 获取指定对象的键名索引。 * @param key 键名对象。 * @return 键名索引。 */ public function indexOf(key:Object):int { var index:int = _keys.indexOf(key); i...
来源: Laya_社区 发布时间: 20180619
...lic on(event, fn){ (this._callbacks[event] = this._callbacks[event] || []).push(fn); } public request(route, msg, cb) { if(arguments.length === 2 && typeof msg === 'function') { cb = msg; msg = {}; } else { msg = msg || {}; } route = route || msg.route; if(!route) { return; } this.reqId++; i...
来源: Laya_社区 发布时间: 20180119
...觉不行,代码如下: var vdata=[]; for(var m =0;m<3;m++) { vdata.push({name:{text:'gggg'}}); //压入三个view对象 } this.lister.array = vdata; this.lister.vScrollBarSkin = ""; this.lister.scrollBar.hide = true; 整体UI结构: VIEW -----list --------view -------------label 2017-06-26...
来源: Laya_社区 发布时间: 20170626
...urces=clips; else { this._sources=; if (this._stateNum===1){ this._sources.push(img); }else { for (var i=0;i < this._stateNum;i++){ this._sources.push(Texture.createFromTexture(img,0,height *i,width,height)); } } AutoBitmap.setCache(key,this._sources); } if (this._autoSize){ this._bitmap.width=th...
来源: Laya_社区 发布时间: 20170516
...s.mFactory){ armature = this.mFactory.buildArmature(0); this.mArmatureUsed.push(armature); return armature; } } public recycleArmature(armature:Laya.Skeleton){ if(armature == null){ return; } armature.removeSelf(); this.mArmatureUnUsed.push(armature); } public playFail(armature:Laya.Skeleton){ i...
来源: Laya_社区 发布时间: 20190821
....ts内定义的unique、union、minus、intersect方法,使用了Array的push方法,导致在进行for(var i in array)操作时进入遍历报错。 有两个方案可供修改: 方案一:弃用自己扩展的Array.ts内的新增方法或者将方法内部的push方法改为其他不影响le...
来源: Laya_社区 发布时间: 20210918
...做到这里,直接定义 var npcpos:Array<any> = []; 再向里面push(x,y); npcpos.push( 6.5 * i, 7.5 * i); 再drawTexture就好了; npcpoint.graphics.drawTextures(texture, npcpos) 2018-01-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20170405
...nction Add(handler:IHandler):void { if(list.indexOf(handler) < 0){ list.push(handler); } } public function Remove(handler:IHandler):void { var index:int=list.indexOf(handler); if(index>=0){ list.splice(index,1); } } public function GetHandler(key:String):IHandler { for(var i:int=0;i<list.le...
来源: Laya_社区 发布时间: 20170724
...ault ${file.contents.toString()}` file.contents = new Buffer(content) this.push(file) return cb() }); }()) .pipe(gulp.dest('.')) }) /** 图集资源添加时间戳 */ gulp.task('updata_atlas_version',['create:hash'], () => { return gulp.src('./server/static/**/*.atlas') .pipe(function(){ return t...
来源: Laya_社区 发布时间: 20180412