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

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

1. UI-Button [ 100%]

...e(this, this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var y: number = (i / this.COLUMNS | 0)...

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

2. UI-Tree [ 99%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res: Array = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/clip_tree_arrow.png" ];...

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

3. UI-CheckBox [ 97%]

...his, this.onCheckBoxSkinLoaded)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONT...

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

4. UI-Input [ 96%]

...onLoadComplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } ...

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

5. UI-RadioGroup [ 95%]

...ate(this, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(ski...

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

6. UI-List [ 95%]

...据项为对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.jpg"); data.push("res/ui/listskins/4.jpg"); data.push("res/ui/listskins/5.jpg"); } list...

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

7. UI-Dialog [ 95%]

...te(this, this.onSkinLoadComplete)); } private onSkinLoadComplete(): void { var dialog: Dialog = new Dialog(); var bg: Image = new Image(this.assets[0]); dialog.addChild(bg); var button: Button = new Button(this.assets[1]); button.name = Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WID...

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

8. UI-Clip [ 94%]

...is.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } private createTimerAnimation(): void { this.counter = new Cli...

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

9. UI-FontClip [ 94%]

...his, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClipNum = new FontClip(assets[0]); var clipnum1 = new FontClip(assets[0]); clipnum.pos(240, 500...

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

10. UI-Tab [ 94%]

...Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { var tabA: Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB: Tab = this.createTab(this.skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; }...

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