大约有 276 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0039 秒)
Laya_社区(102) Laya2.0_示例(102) Laya_示例(36) Laya2.0_文档(33) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gr...
来源: Laya2.0_示例 发布时间: 20241124
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.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 = ...
来源: Laya2.0_示例 发布时间: 20241124
...来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; var sp; for(var i=0;i<5;i++){ sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"red"); sp.y = i*60; sp.index=i; sp...
来源: Laya_社区 发布时间: 20170221
...e.alignH = Stage.ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //创建图片 createImage(); } /***创建图片***/ private function createImage():void { //实例化图片 var img:Image = new Image("../../../../res/ui/dialog (...
来源: Laya2.0_文档 发布时间: 20210714
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){ var dialog = new Image("../../res/ui/dia...
来源: Laya_社区 发布时间: 20180201
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.wi...
来源: Laya2.0_示例 发布时间: 20241124
...t(2048,1536); Laya.stage.bgColor = "#333333"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; bgRes = "res/bg.jpg"; addPic("res/bg.jpg", 0, 0); var txt:Text = new Text(); txt.text = "Fishing Game"; txt.color = "#FFFFFF"; txt.fontSize = 60; txt.stroke = 5; txt.strokeColor = "#FF0000"; txt.pos(60,100); tx...
来源: Laya_社区 发布时间: 20170522
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar(...
来源: Laya2.0_文档 发布时间: 20210715
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.wi...
来源: Laya2.0_示例 发布时间: 20241124
...不绘制的情况 Graphics.cmds切换纹理做动画 3D场景,使用了SCALE_SHOWALL匹配模式后,一部分看不见消失了。 tiledMap api 纹理索引值及TileSetId的含义? 希望加入类似Pixi.js的多纹理寄存器支持 layabox中纹理的颜色采样问题,用原生combobox也...
来源: Laya_社区 发布时间: 20180226