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

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

1. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 100%]

...Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addChild(button); this...

来源: Laya3.0_文档 发布时间: 20230303

2. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

按钮(GButton)按钮(GButton) Author: 谷主 Title 标题。必须先设置好Title Widget。 Selected Title 选中状态时的标题,对单选或多选按钮有意义。 Icon 图标。必须先设置好Icon Widget。 Selected Icon 选中状态时的图标,对单选或多选按钮有...

来源: Laya3.0_文档 发布时间: 20251010

3. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): gui.Button; createCheckbox(autoSize?: boolean): gui.Button; createIconCheckbox(flat?: boolean): gui.Button; createRadio(): gui.Button; createComboBox()...

来源: Laya3.0_文档 发布时间: 20251010

4. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...送者发送事件给它的侦听者。那么比如上面示例代码中的Button就是继承自Laya.EventDispatcher,可以用.on的方法来侦听CLICK`事件。 Laya.EventDispatcher 具有如下功能: 2.2.1 事件派发 event /** * 派发事件。 * @param type 事件类型。 * @param data ...

来源: Laya3.0_文档 发布时间: 20251010