大约有 7 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0020 秒)
...更高效。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, Handler = Laya.Handler; // ...
来源: Laya2.0_示例 发布时间: 20251209
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; te...
来源: Laya2.0_示例 发布时间: 20251209
...LayaAirIDE让项目开发更高效。let COL_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....
来源: Laya2.0_示例 发布时间: 20251209
...leMode = "noscale"; //设置横竖屏 Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; //设置水平对齐 Laya.stage.alignH = "center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文...
来源: Laya2.0_示例 发布时间: 20251209
...Mode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250, 120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(thi...
来源: Laya2.0_示例 发布时间: 20251209
...WALL; Laya.stage.bgColor = "#232628"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(...
来源: Laya2.0_示例 发布时间: 20251209
...s.viewWidth, this.viewHeight, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.scaleMode = Stage.SCALE_NOBORDER; // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } private animate(): void { if (this.tick > th...
来源: Laya2.0_示例 发布时间: 20251209