大约有 28 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
进度条组件(ProgressBar)一、通过LayaAir IDE创建ProgressBar组件1.1 创建ProgressBar1.2 ProgressBar属性1.3 脚本控制ProgressBar二、通过代码创建ProgressBar进度条组件(ProgressBar) 一、通过LayaAir IDE创建ProgressBar组件 ProgressBar经常被用于显示游...
来源: Laya3.0_文档 发布时间: 20251010
...束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty Detaildatapropertydata:* [read-only] 返回的数据。 Implementation public function get data():*httpproperty http:* [read-only] 本对象所封装的...
来源: laya_api 发布时间: 20170929
...束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty Detaildatapropertydata:* [read-only] 返回的数据。 Implementation public function get data():*httpproperty http:* [read-only] 本对象所封装的...
来源: Laya2.0_api 发布时间: 20190513
...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
...类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完成。 Event.COMPLETE:请求完成后触发,表示响应数据已经完全接收。 Event.ERROR:请求出错时...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/ProgressBar" ProgressBar Class ProgressBar ProgressBar 组件显示内容的加载进度。 example 以下示例代码,创建了一个新的 ProgressBar 实例,设置了它的皮肤、位置、宽高、网格等信息,...
来源: Laya3.0_api 发布时间: 20231115
...图3-1所示。 (图3-1) 在2D预制体中,创建一个进度条(Progress),因为血条有当前血量和总体血量构成,因此Progress正好符合要求。并且血条上面使用Label显示人物的名字。另外注意Prefab的根节点Box的size最好改为2的N次幂,这符...
来源: Laya3.0_文档 发布时间: 20251010
...进度,示例如下:package { import laya.net.Loader; import laya.ui.ProgressBar; import laya.utils.Handler; public class LoadingDemo { private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png...
来源: Laya_社区 发布时间: 20160509