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

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

1. laya.html.dom.HTMLDivElement_API3.0 [ 100%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from AnimationBase.zOrder Defined in laya/display/Sprite.ts:1779 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上...

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

2. laya.ui.FontClip_API3.0 [ 88%]

...所有对象重新排序。值越大,越靠上。默认为0,则根据添加顺序排序。 Returns number Inherited from Text.zOrder Defined in laya/display/Sprite.ts:1833 z排序,更改此值,则会按照值的大小对同一容器的所有对象重新排序。值越大,越靠上。默认...

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

3. laya.ui.ComboBox_API3.0 [ 73%]

...行的处理器。 Laya.stage.addChild(comboBox);//将此 comboBox 对象添加到显示列表。 } private function onSelect(index:int):void { trace("当前选中的项对象索引: ",index); } } } example Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置...

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

4. laya.ui.Label_API3.0 [ 73%]

...t = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到我心里话。");//创建一个 Label 类的实例对象 passwordLabel 。 passwordLabel.asPassword = true;//设置 passwordLa...

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

5. laya.ui.TextInput_API3.0 [ 72%]

...置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler.create(this, onL...

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

6. laya.ui.TextArea_API3.0 [ 71%]

.../设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], laya.utils.Handler....

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

7. laya.ui.Button_API3.0 [ 64%]

...点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefe...

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

8. laya.ui.CheckBox_API3.0 [ 64%]

...事件处理器。 Laya.stage.addChild(checkBox);//将此 checkBox 对象添加到显示列表。 } private function onClick(checkBox:CheckBox):void { trace("输出选中状态: checkBox.selected = " + checkBox.selected); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColo...

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

9. laya.ui.Radio_API3.0 [ 64%]

...点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("button.selected = "+ button.selected); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor =...

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

10. laya.ui.RadioGroup_API3.0 [ 64%]

...时执行的处理器。 Laya.stage.addChild(radioGroup);//将 radioGroup 添加到显示列表。 } private function onSelect(index:int):void { trace("当前选择的单选按钮索引: index= ", index); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor ...

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