大约有 270 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
Laya_社区(197) Laya2.0_文档(22) Laya3.0_文档(15) Laya3.0_api(12) Laya2.0_api(10) laya_api(6) Laya_示例(4) Laya2.0_示例(4)
...console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; ...
来源: Laya_示例 发布时间: 20251130
...置 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
...言、LayaAirIDE让项目开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切...
来源: Laya2.0_示例 发布时间: 20251130
...1000) % this.dayDuration; const totalMinutes = Math.floor((this.getAdjustedProgress()) * 24 * 60); const hours = Math.floor(totalMinutes / 60); const minutes = totalMinutes % 60; const timeString = `${this.padNumber(hours)}:${this.padNumber(minutes)}`; // 更新文本显示 this.displayText.text = `...
来源: Laya3.0_文档 发布时间: 20251010
...x Constructors constructor Properties ext loader obsoluteInst onComplete onProgress options progress type url uuid Methods reset Constructors constructor new LoadTask(): LoadTask Defined in laya/net/Loader.ts:1068 Returns LoadTask Properties ext ext: string Implementation of ILoadTask.ext Defined in...
来源: Laya3.0_api 发布时间: 20231115
...entage(100); processTimer.setType(ProcessTimer.PROGRESS_TIMER_TYPE_RECT); processTimer.setPosition(0,0); processTimer.setReverseDirection(true) var percent:Number = 0; ...
来源: Laya_社区 发布时间: 20180404
...进度 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
...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
...on/310 2017-02-06 0 0 分享 微博 QZONE 微信 jacksing888 赞同来自: progress是不是只支持横向或者众向 不直接扇形进度条 画一个圆这样的?类似于 cocos2djs的 progressTimer 2017-02-06 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170206