大约有 633 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
Laya_社区(319) Laya2.0_示例(114) Laya_示例(88) Laya2.0_文档(50) laya_api(18) Laya3.0_文档(17) Laya2.0_api(16) Laya3.0_api(11)
...llTextCmd textAlign : String 文本对齐方式,可选值:"left","center","right"。 FillTextCmd x : Number 开始绘制文本的 x 坐标位置(相对于画布)。 FillTextCmd y : Number 开始绘制文本的 y 坐标位置(相对于画布)。 FillTextCmdPublic Methods Me...
来源: Laya2.0_api 发布时间: 20190513
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; this.bitmapFont = new BitmapFont(); this.bitmapFo...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { // 该文本自动适应尺寸 var autoSizeText = createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeT...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/radioButton (1).png", "../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins,...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["res/ui/radioButton (1).png", "res/ui/radioButton (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(th...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; mLabelSprite = new Sprite(); Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = ...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadC...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var vGap = 200; rotateTimeBasedText = createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.he...
来源: Laya_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { const Text = Laya.Text; // 该文本自动适应尺寸 var autoSizeText = this.createSampleText(); autoSizeText.ove...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createApes(); })(); function createApes() { //显示两只猩猩 ape1 = new Sprite(); ape2 = new Sprite(); ape1.loadImage("../../res/apes/monkey2.png")...
来源: Laya_示例 发布时间: 20241118