大约有 430 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
Laya_社区(197) Laya2.0_示例(103) Laya_示例(81) Laya2.0_文档(45) laya_api(1) Laya3.0_api(1) Laya2.0_api(1) Laya3.0_文档(1)
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; tex...
来源: Laya_示例 发布时间: 20241124
...内容相关的链接 提交 3 个回复 sipano 赞同来自: Laya.stage.scaleMode="exactfit"; Laya.stage.screenMode="horizontal"; Laya.stage.alignH="left"; Laya.stage.alignV="top"; 2017-12-22 0 0 分享 微博 QZONE 微信 sipano 赞同来自: Laya.stage.scaleMode="exactfit"; Laya.stage.alignH="...
来源: Laya_社区 发布时间: 20171222
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createMovieClip(); })(); function createMovieClip() { var mc = new MovieClip(); mc.load(SWFPath); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCH...
来源: Laya_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inpu...
来源: Laya_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } createMovieClip() { const MovieClip = Laya.MovieClip; const SWFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHeight = 406; let mc ...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; 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"...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; 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-Landsca...
来源: Laya2.0_示例 发布时间: 20241124
...,我们搜索laya.display.Stage,可以看到关于缩放模式的方法scaleMode共有七种参数,用于实现各种屏幕适配的缩放需求,参数说明如图1所示: ![blob.png](img/1.png) (图1)LayaAir引擎关于缩放模式scaleMode的参数说明 **简单概览一下参...
来源: Laya2.0_文档 发布时间: 20200307
... Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#00000"; setup(); })(); function setup() { var dialog = new Image(); dialog.skin = "../../res/ui/dialog (3).png"; dialog.sizeGrid = "40,40,40,40,0"; dialog.size(5...
来源: Laya_社区 发布时间: 20170828
...V = Stage.ALIGN_MIDDLE; 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...
来源: Laya2.0_示例 发布时间: 20241124