• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 5 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0014 秒)

1. UI-Clip [ 100%]

...yaAirIDE让项目开发更高效。let buttonSkin = "res/ui/button-7.png", clipSkin = "res/ui/num0-9.png", bgSkin = "res/ui/coutDown.png", currFrame; class UI_Clip { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不...

来源: Laya2.0_示例 发布时间: 20241001

2. UI-Tree [ 99%]

...bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const Utils = Laya.Utils, Tree = Laya.Tree; ...

来源: Laya2.0_示例 发布时间: 20241001

3. UI-FontClip [ 81%]

...语言、LayaAirIDE让项目开发更高效。 let assets = ["res/comp/fontClip_num.png", "res/comp/fontClip.png"]; class Font_Clip { constructor() { // 不支持WebGL时自动切换至Canvas const WebGL = Laya.WebGL, Stage = Laya.Stage; Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

来源: Laya2.0_示例 发布时间: 20241001

4. IDE-显示IDE创建的界面 [ 79%]

...BtnClick() { //手动控制组件属性 this.radio.selectedIndex = 1; this.clip.index = 8; this.tab.selectedIndex = 2; this.combobox.selectedIndex = 0; this.check.selected = true; } function onBtn2Click() { //通过赋值可以简单快速修改组件属性 //赋值有两种方式: //简单赋值...

来源: Laya2.0_示例 发布时间: 20200319

5. 混合模式-Lighter [ 62%]

... = []; for (var i: number = 1; i = animation.frames.concat(); // 反转帧 clips = clips.reverse(); // 添加到已有帧末尾 animation.frames = animation.frames.concat(clips); animation.play(); return animation; } private preFixNumber(num:number, strLen:number):string { return ("0000000000" + num...

来源: Laya2.0_示例 发布时间: 20241001