大约有 548 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(325) Laya2.0_示例(77) Laya_示例(56) Laya2.0_文档(43) Laya3.0_文档(17) laya_api(11) Laya3.0_api(10) Laya2.0_api(9)
...tage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#C0C0C0"; index.html和myLaya.max.html里增加如下: <meta name='full-screen' content='true' /> <meta name='screen-orientation' content='lands...
来源: Laya_社区 发布时间: 20170203
...r: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终颜色为#ff0000 redText: { color: "#ff0000", }, }; // JS...
来源: Laya3.0_文档 发布时间: 20251010
...aya.WebGL); //stage水平对齐方式 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //stage竖直对齐方式 Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; //设置适配模式 Laya.stage.scaleMode = "showall"; //添加Sprite var sp = new Laya.Sprite(); Laya.stage.addChild(sp); //将sp移动到横坐...
来源: Laya_社区 发布时间: 20180524
... 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 list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x...
来源: Laya_社区 发布时间: 20180731
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.loa...
来源: Laya2.0_示例 发布时间: 20260303
...e = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改...
来源: Laya3.0_文档 发布时间: 20251010
...0"); button.graphics.fillText(label, w / 2 , 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private function parseComplete(fac:Templet):void { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(0); mArmature.x = 400; mArmature.y = 500; m...
来源: Laya_社区 发布时间: 20170406
...iteLaya.init(640, 1136,WebGL); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.bgColor = "12333"; function layaSlot(info){ layaSlo...
来源: Laya_社区 发布时间: 20170323
...50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } //private musicString:string = "./sounds/心跳的证明.mp3"; private musicString:string = "./res/心跳的证明.mp3"; private soundString:string = "./sounds/hit.wav...
来源: Laya_社区 发布时间: 20190421
... = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLo...
来源: Laya_社区 发布时间: 20171213