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

大约有 33 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0024 秒)

1. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 100%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createTexts(); })(); function createTexts() { var t1 = createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2 = createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110)...

来源: Laya2.0_文档 发布时间: 20210714

2. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 97%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = ...

来源: Laya2.0_文档 发布时间: 20210715

3. Image属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 87%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var dialog = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })(); ```

来源: Laya2.0_文档 发布时间: 20210715

4. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 87%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image(); ```...

来源: Laya2.0_文档 发布时间: 20210714

5. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 85%]

...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

6. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 84%]

...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

7. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 83%]

...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, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new P...

来源: Laya2.0_文档 发布时间: 20210715

8. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 82%]

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

来源: Laya2.0_文档 发布时间: 20210714

9. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 81%]

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

来源: Laya2.0_文档 发布时间: 20210715

10. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 81%]

...e.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)); } /***加...

来源: Laya2.0_文档 发布时间: 20210715