大约有 11 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)
按钮组件(Button)1、LayaAir IDE中使用Button组件1.1 创建Button组件1.2 Button属性1.3 脚本控制Button2、Button代码创建按钮组件(Button) 1、LayaAir IDE中使用Button组件 按钮(Button)组件是最常用的组件之一,可以显示文本标签、图标或者...
来源: Laya3.0_文档 发布时间: 20251010
...Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let 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_文档 发布时间: 20251024
...nds Laya.Script { // 以下资源来自“引擎API使用示例” private buttonSkin: string = "resources/res/ui/button-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; //组件...
来源: Laya3.0_文档 发布时间: 20251010
...heckBox多选框组件(CheckBox) CheckBox是多选框组件,继承自Button。它由两部分组成,选择状态框及内容说明标签。其中选择状态框是图片资源,内容说明标签为文本。CheckBox组件的属性接口介绍请参考CheckBox API。 一、通过LayaAir IDE...
来源: Laya3.0_文档 发布时间: 20251010
...,将改变ProgressMesh的填充比例,而不是图片的高度。 Grip Button 滑块按钮精灵。注意:grip按钮应该与bar对象建立一个关联,并放置在进度条处于最大值时的位置。这个关联是: 正向:grip左左关联到bar或者顶顶关联到bar_v; 反向...
来源: Laya3.0_文档 发布时间: 20251010
...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
...式是通过搜索查找 3.1 文字搜索 通过在搜索框中,输入“button”可以快速检索出Button组件,并可快速拖入2D场景中,如动图3-1所示 (动图3-1) 3.2 类型搜索 通过点击类型搜索按钮,选择文件类型,比如选择“LightingSettings”,可...
来源: Laya3.0_文档 发布时间: 20251010
...SoundNode、VideoNode); UI组件(Box、HBox、VBox、Image、Clip、Button、CheckBox、Radio、RadioGroup、ComboBox、Label、TextInput、TextArea、FontClip、ProgressBar、HSilder、VSlider、List、Panel、Tree、Tab、ViewStack、HScrollBar、VScrollBar、ColorPicker、View、Dialog、Op...
来源: Laya3.0_文档 发布时间: 20251011
...lass() export class NewScript extends Laya.Script { @property({ type: Laya.Button, caption: "切换按钮" }) public btn: Laya.Button; spine: Laya.Spine2DRenderNode; //外部皮肤 weaponSkin: Laya.ExternalSkin = new Laya.ExternalSkin(); //外部皮肤列表项 weaponSkinItem: Laya.ExternalSkinItem ...
来源: Laya3.0_文档 发布时间: 20251128
...s,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("inpu...
来源: Laya3.0_文档 发布时间: 20251010