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

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

1. laya.ui.Button_API3.0 [ 100%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Button" Button Class Button Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 * 可以是单态,两态和三态,默认三态(up,over,down)。 example 以...

来源: Laya3.0_api 发布时间: 20231115

2. laya.ui.Radio_API3.0 [ 98%]

...该组中当前所选的 Radio 控件。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthS...

来源: Laya3.0_api 发布时间: 20231115

3. laya.ui.CheckBox_API3.0 [ 98%]

...出选中状态: checkBox.selected = " + checkBox.selected); } } Hierarchy Button CheckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWi...

来源: Laya3.0_api 发布时间: 20231115

4. laya.ui.CheckBox [ 93%]

...ods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,默认该标签位于 CheckBox 右侧。 ...

来源: Laya2.0_api 发布时间: 20190513

5. laya.ui.Radio [ 93%]

...| Methods | Events Packagelaya.uiClasspublic class RadioInheritanceRadio Button UIComponent Sprite Node EventDispatcher Object Radio 控件使用户可在一组互相排斥的选择中做出一种选择。 用户一次只能选择 Radio 组中的一个成员。选择未选中的组成员将取消...

来源: Laya2.0_api 发布时间: 20190513

6. laya.ui.Button [ 93%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多...

来源: Laya2.0_api 发布时间: 20190513

7. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已...

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

8. laya.ui.Dialog_API3.0 [ 89%]

...ame " + name +"的组件,关闭了dialog。"); } } } } import laya.ui.Button; import laya.ui.Dialog; import laya.ui.Image; class Dialog_Instance extends Dialog { function Dialog_Instance():void { var bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.heig...

来源: Laya3.0_api 发布时间: 20231115

9. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, th...

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

10. laya.ui.ComboBox_API3.0 [ 83%]

...= "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var comboBox:ComboBox = new ComboBox("resource/ui/button.png", "item0,item1,item2,...

来源: Laya3.0_api 发布时间: 20231115