• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,491 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0070 秒)

101. UI-Label [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.creat...

来源: Laya2.0_示例 发布时间: 20251130

102. 文本-下划线 [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createText('left', null, 100, 10); this.createText('center', "#00BFFF", 155, 150); this.createText('right', "#FF7F50", 210, 290); } createTex...

来源: Laya2.0_示例 发布时间: 20251130

103. 请教一下屏幕适配模式还有绘图问题 [ 77%]

...怎么关于屏幕我用的是Broser。ClientWidth以及高度。模式是showall,为什么我分辨率用苹果4看有边框。设计模式的宽高直接获取的设备的宽高为什么还有边框呢!看图 附件 : --> 2016-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20161105

104. 滤镜-发光滤镜 [ 77%]

...GN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); function setup() { createApe(); applayFilter(); } function createApe() { ape = new Sprite(); ape.loadImage(apePath); var ...

来源: Laya_示例 发布时间: 20251130

105. UI-ComboBox [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) ...

来源: Laya_示例 发布时间: 20251130

106. 缓动-简单的Tween [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var terminalX = 200; var characterA = createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var charac...

来源: Laya_示例 发布时间: 20251130

107. UI-Input [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadCom...

来源: Laya_示例 发布时间: 20251130

108. 文本-位图字体 [ 77%]

...GN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; loadFont(); })(); function loadFont() { var bitmapFont = new BitmapFont(); bitmapFont.loadFont("../../res/bitmapFont/test.fnt", new Handler(this, onFontLoaded, [bitmapFont])); } funct...

来源: Laya_示例 发布时间: 20251130

109. 文本-复杂的文本样式 [ 77%]

...GN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createText(); })(); function createText() { var txt = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发...

来源: Laya_示例 发布时间: 20251130

110. UI-Input [ 77%]

...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); skins = ["res/ui/input (1).png", "res/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete))...

来源: Laya2.0_示例 发布时间: 20251130