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

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

1. UI-Button [ 100%]

...三种开发语言、LayaAirIDE让项目开发更高效。let COLUMNS = 2, BUTTON_WIDTH = 147, BUTTON_HEIGHT = 165 / 3, HORIZONTAL_SPACING = 200, VERTICAL_SPACING = 100, xOffset, yOffset, skins; class UI_Button { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, S...

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

2. UI-Dialog [ 97%]

...; } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dialog.addChild(bg); let button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDIN...

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

3. UI-Clip [ 91%]

...、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。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....

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

4. Sprite-屏幕截图 [ 90%]

... WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截图","sprite截图","清理"]; this._canvas = null; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.mo...

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