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

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

1. UI-Tab [ 100%]

...addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/t...

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

2. DOM元素-表单输入 [ 93%]

... 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标签 this.showLabel("邮箱", 0, rowHeightDelta * 0); this.showLabel("出生日期", 0, rowHeightDelta * 1); this.showLabel("密码", 0, rowHeightDelta * 2); // 显示右侧输入框 let emailInput = this.createInputElement...

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

3. UI-CheckBox [ 88%]

... this.Y_OFFSET; // 给左边的三个CheckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, this.updateLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb...

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

4. 缓动-时间线 [ 61%]

...imeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDown", 0).to(this.target, {x:450, ...

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