大约有 632 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0043 秒)
Laya_社区(254) Laya2.0_示例(114) Laya2.0_文档(94) Laya_示例(92) Laya3.0_api(34) Laya2.0_api(21) Laya3.0_文档(15) laya_api(8)
...ACTFIT; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg:Image = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); ...
来源: Laya2.0_文档 发布时间: 20200307
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; let gap = 150; this.ape1 = new Sprite(); Laya.stage.addChild(this.ape1); this.ape1.loadImage(monke...
来源: Laya2.0_示例 发布时间: 20241118
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this,...
来源: Laya2.0_示例 发布时间: 20241118
....alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.load...
来源: Laya_示例 发布时间: 20241118
...调试,背景始终黑色,写了个最简单的框架还是黑,更改bgColor无效 Laya.MiniAdpter.init(); Laya.init(450, 800); class GameMain { constructor() { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.stage.alignH = Laya.Stage.ALIGN...
来源: Laya_社区 发布时间: 20180620
图片不能按轴心旋转 Laya.init(750,1334); Laya.stage.bgColor = '#000000'; Laya.stage.scaleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10...
来源: Laya_社区 发布时间: 20180519
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; this.sp = new Sprite(); this.sp.graphics.drawRect(0, 0, 200, 200, "#D2691E");...
来源: Laya2.0_示例 发布时间: 20241118
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var...
来源: Laya_示例 发布时间: 20241118
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createLabel("只允许输入数字:").pos(50, 20); let input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入...
来源: Laya2.0_示例 发布时间: 20241118
....modes; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); ...
来源: Laya2.0_文档 发布时间: 20200307