大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
...onChange); Laya.timer.loop(100, this, this.changeValue); } changeValue() { if (this.progressBar.value >= 1) { this.progressBar.value = 0; } this.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stag...
来源: Laya2.0_示例 发布时间: 20260303
...ex]) //当索引相同时 BOX 高度改变 if(this.index_num ==index){ cell.height=80; cell.y =index*30; //显示图片 img2.visible =true; }else ...
来源: Laya_社区 发布时间: 20190522
...义:bodyArr: Array<Sprite> = [] 被调用的函数 bodyCheck() { if (this.bodyArr.length <= 0) return; if (this.eatBean >= this.bodyBeanNum && this.bodyArr.length < this.bodyMaxNum) { let addBodyNum = Math.floor(this.eatBean / this.bodyBeanNum) let x = this.bodyArr[this.body...
来源: Laya_社区 发布时间: 20180601
...ogressbar设置皮肤后, 马上destroy会报bug set skin(value: string) { if (this._skin != value) { this._skin = value; if (this._skin && !Loader.getRes(this._skin)) { ILaya.loader.load(this._skin, Handler.create(this, this._skinLoaded), null, Loader.IMAGE, 1); // TODO TS } else { this._sk...
来源: Laya_社区 发布时间: 20200108
...,除去图片和音频资源其他不能保存 下载资源函数 MiniFileMgr.downLoadFile 图片和音频下载 MiniFileMgr.downOtherFiles 其他资源函数 MiniFileMgr.downFiles 主要说下载其他资源函数 MiniFileMgr.downFiles ->MiniFileMgr.readFile->MiniFileMgr.copyFile ...
来源: Laya_社区 发布时间: 20190222
...少. 在Animator的__proto.updatePlayer方法中, if (elapsedPlaybackTime >=clipDuration){ do { elapsedPlaybackTime-=clipDuration; playState._playEventIndex=0; ...
来源: Laya_社区 发布时间: 20181203
...; } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = ...
来源: Laya_示例 发布时间: 20260303
...0 + 80; nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = false ; }; } 2017-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20171226
...空间的视口。 */ __getset(0,__proto,'normalizedViewport',function(){ if (!this._viewportExpressedInClipSpace){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x / sizeW; this._normalizedViewport.y=vp.y / sizeH; th...
来源: Laya_社区 发布时间: 20170601
...置了repeat=true,改变uv时图片没有平铺 private onFrame():void{ if(this.testScrollImg){ if(this.testScrollImg._bitmap && this.testScrollImg._bitmap.source){ this.testScrollImg._bitmap.source.repeat = true; var ss:any = this.testScrollImg._bitmap.source.uv; var uv:any[] = []; uv[0] ...
来源: Laya_社区 发布时间: 20180321