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

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

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

...件。");//创建一个 CheckBox 类的实例对象 checkBox ,传入它的皮肤skin和标签label。 checkBox.x = 100;//设置 checkBox 对象的属性 x 的值,用于控制 checkBox 对象的显示位置。 checkBox.y = 100;//设置 checkBox 对象的属性 y 的值,用于控制 checkBox 对...

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

2. laya.ui.Button_API3.0 [ 99%]

...","label");//创建一个 Button 类的实例对象 button ,并传入它的皮肤。 button.x = 100;//设置 button 对象的属性 x 的值,用于控制 button 对象的显示位置。 button.y = 100;//设置 button 对象的属性 y 的值,用于控制 button 对象的显示位置。 button.cl...

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

3. laya.ui.Radio_API3.0 [ 94%]

...个新的 Radio 类实例。 Parameters Default value skin: string = null 皮肤。 Default value label: string = "" 标签。 Returns Radio Properties Optional _extra _extra: INodeExtra Implementation of ISelect._extra Inherited from Node._extra Defined in laya/display/Node.ts:56 _graphics _graphic...

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

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

...4,item5");//创建一个 ComboBox 类的实例对象 comboBox ,传入它的皮肤和标签集。 comboBox.x = 100;//设置 comboBox 对象的属性 x 的值,用于控制 comboBox 对象的显示位置。 comboBox.y = 100;//设置 comboBox 对象的属性 x 的值,用于控制 comboBox 对象的...

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

5. laya.ui.Image_API3.0 [ 83%]

...e 以下示例代码,创建了一个新的 Image 实例,设置了它的皮肤、位置信息,并添加到舞台上。 package { import laya.ui.Image; public class Image_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";...

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

6. laya.ui.ColorPicker_API3.0 [ 80%]

...ket 。 colorPicket.skin = "resource/ui/color.png";//设置 colorPicket 的皮肤。 colorPicket.x = 100;//设置 colorPicket 对象的属性 x 的值,用于控制 colorPicket 对象的显示位置。 colorPicket.y = 100;//设置 colorPicket 对象的属性 y 的值,用于控制 colorPicket 对...

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

7. laya.ui.List_API3.0 [ 76%]

...lBarSkin = "resource/ui/vscroll.png";//设置 list 的垂直方向滚动条皮肤。 list.array = arr;//设置 list 的列表数据源。 list.pos(100, 100);//设置 list 的位置。 list.selectEnable = true;//设置 list 可选。 list.selectHandler = new Handler(this, onSelect);//设置 list 改...

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

8. laya.ui.RadioGroup_API3.0 [ 72%]

...签集。 radioGroup.skin = "resource/ui/radio.png";//设置 radioGroup 的皮肤。 radioGroup.space = 10;//设置 radioGroup 的项间隔距离。 radioGroup.selectHandler = new Handler(this, onSelect);//设置 radioGroup 的选择项发生改变时执行的处理器。 Laya.stage.addChild(radioGr...

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

9. laya.ui.Tab_API3.0 [ 70%]

...的实例对象 tab 。 tab.skin = "resource/ui/tab.png";//设置 tab 的皮肤。 tab.labels = "item0,item1,item2";//设置 tab 的标签集。 tab.x = 100;//设置 tab 对象的属性 x 的值,用于控制 tab 对象的显示位置。 tab.y = 100;//设置 tab 对象的属性 y 的值,用于控...

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

10. laya.ui.TextArea_API3.0 [ 70%]

... textArea 。 textArea.skin = "resource/ui/input.png";//设置 textArea 的皮肤。 textArea.sizeGrid = "4,4,4,4";//设置 textArea 的网格信息。 textArea.color = "#008fff";//设置 textArea 的文本颜色。 textArea.font = "Arial";//设置 textArea 的字体。 textArea.bold = true;//设置...

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