大约有 41 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)
... alpha遮罩 用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); --------------------...
来源: Laya_社区 发布时间: 20170606
求绘制遮罩会引起黑屏的解决办法 this.progressvalue = new Laya.Image("Game/bar_yuan.png"); this.progressvalue.anchorX = 0.5; this.progressvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this....
来源: Laya_社区 发布时间: 20180725
...置 Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void { progress++; //最高100%进度 if(progress>=100) { progress=100; this.tips.text="游戏加载完毕,即将进入游戏..." this.panel.visible=false; this.gobtn.visible=true; }else { this.pro.value=progress/100; this.tips....
来源: Laya_社区 发布时间: 20180121
...ad( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png"] ).then(() => { let resArr: Array<any> = [ { url: "resources/prefab/uiDemo/useUI/ChangeTexture.lh", type: Laya.Loader.HIERARCHY }, { url: "resources/prefab/uiDemo/useUI/...
来源: Laya3.0_文档 发布时间: 20241014
...ad( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png"] ).then(() => { let resArr: Array<any> = [ { url: "resources/prefab/uiDemo/useUI/ChangeTexture.lh", type: Laya.Loader.HIERARCHY }, { url: "resources/prefab/uiDemo/useUI/...
来源: Laya3.0_文档 发布时间: 20251105
...进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); this.i = 0; } this.i++; this.timeFn(this.i, num); }; p.timeFn = function(i, num) { //用定时延迟去加载进度 - 由于进度太快无法看到一个虚假的效果 Laya.timer.on...
来源: Laya_社区 发布时间: 20170803
...加载修改的JS语法,发现有几个问题,想请教一下; var progressBar; (function () { Laya.init(720, 1280); var pro1={url:"comp/BG1.jpg",type:Laya.Loader.IMAGE}; var pro2={url:"comp/BG1.jpg",type: Laya.Loader.IMAGE}; var proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(pr...
来源: Laya_社区 发布时间: 20170701
... } this.event(/*laya.events.Event.PROGRESS*/"progress",0.3+1 / toloadPics.length *0.6); return this._loadImage(toloadPics.pop()); 2019-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190202
...类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完成。 Event.COMPLETE:请求完成后触发,表示响应数据已经完全接收。 Event.ERROR:请求出错时...
来源: Laya3.0_文档 发布时间: 20251010
...调 Laya.LoaderManager.prototype["_loadAssets"] = function (arr, complete, progress, type, priority, cache, group) { (priority === void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize = 0; var items = ; var su...
来源: Laya_社区 发布时间: 20171226