大约有 14 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0025 秒)
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_Restrict { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...
来源: Laya2.0_示例 发布时间: 20241118
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_Overflow { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...
来源: Laya2.0_示例 发布时间: 20241118
...Input.on(Event.INPUT, this, function() { duration = parseInt(durationInput.text); }); } createInputWidthLabel(label, prompt, x, y) { const Text = Laya.Text, Input = Laya.Input; let text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); let input = new ...
来源: Laya2.0_示例 发布时间: 20241118
... = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cli...
来源: Laya2.0_示例 发布时间: 20241118
...ndler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; thi...
来源: Laya2.0_示例 发布时间: 20241118
...Label(); Laya.stage.addChild(label); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } return label; } } new UI_Label();module laya { import Stage = Laya.Stage; impo...
来源: Laya2.0_示例 发布时间: 20241118
...ailInput, birthdayInput, passwordInput]); } showLabel(label, x, y) { const Text = Laya.Text; let t = new Laya.Text(); t.height = this.rowHeight; t.valign = "middle"; t.fontSize = 15; t.font = "SimHei"; t.text = label; t.pos(x, y); this.form.addChild(t); } createInputElement(){ let input = Laya.Brows...
来源: Laya2.0_示例 发布时间: 20241118
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_Underline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(600, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MID...
来源: Laya2.0_示例 发布时间: 20241118
...Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotateTimeBasedText.x, this.rotateTimeBasedText.y ...
来源: Laya2.0_示例 发布时间: 20241118
...言、LayaAirIDE让项目开发更高效。let fontName = "diyFont"; class Text_BitmapFont { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.a...
来源: Laya2.0_示例 发布时间: 20241118