大约有 18 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0022 秒)
...语言、LayaAirIDE让项目开发更高效。let amount = 500, character1 = [ "res/cartoon2/yd-6_01.png", "res/cartoon2/yd-6_02.png", "res/cartoon2/yd-6_03.png", "res/cartoon2/yd-6_04.png", "res/cartoon2/yd-6_05.png", "res/cartoon2/yd-6_06.png", "res/cartoon2/yd-6_07.png", "res/cartoon2/yd-6_08.png...
来源: Laya2.0_示例 发布时间: 20241123
...LL; Laya.stage.bgColor = "#232628"; // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1; Laya.loader.load("res/apes/monkey2.png", Handler.create(this, this.onAssetLoaded), null, null, 0, false); Laya.loader.load("res/apes/monk...
来源: Laya2.0_示例 发布时间: 20241123
...发语言、LayaAirIDE让项目开发更高效。let skins = ["res/ui/tab1.png", "res/ui/tab2.png"]; class UI_Tab { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550,...
来源: Laya2.0_示例 发布时间: 20241123
...L_AMOUNT = 2, ROW_AMOUNT = 3, HORIZONTAL_SPACING = 200, VERTICAL_SPACING = 100, X_OFFSET = 100, Y_OFFSET = 50, skins; class UI_CheckBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换...
来源: Laya2.0_示例 发布时间: 20241123
...r = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, t...
来源: Laya2.0_示例 发布时间: 20241123
...ipt三种开发语言、LayaAirIDE让项目开发更高效。let SPACING = 150, X_OFFSET = 200, Y_OFFSET = 200, skins; class UI_RadioGroup { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切...
来源: Laya2.0_示例 发布时间: 20241123
...言、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, Stat = Laya.Stat...
来源: Laya2.0_示例 发布时间: 20241123
...类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_t...
来源: Laya2.0_示例 发布时间: 20241123
...ipt三种开发语言、LayaAirIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持Web...
来源: Laya2.0_示例 发布时间: 20241123
...项目(排列成 4 x 5 矩阵)组成的数组,红色 let redMat = [ 1, 0, 0, 0, 0, // R 0, 0, 0, 0, 0, // G 0, 0, 0, 0, 0, // B 0, 0, 0, 1, 0 // A ]; //创建一个颜色滤镜对象,红色 let redFilter = new ColorFilter(redMat); // 红色的猩猩 let redApe = this.createApe(); redApe.filter...
来源: Laya2.0_示例 发布时间: 20241123