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

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

101. laya.ui.VScrollBar_API3.0 [ 80%]

...ScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var vScrollBar; var res = ["resource/ui/v...

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

102. laya.ui.ComboBox_API3.0 [ 79%]

...//将此 comboBox 对象添加到显示列表。 } private onSelect(index: number): void { console.log("当前选中的项对象索引: ", index); } } Hierarchy UIComponent ComboBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior itemRen...

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

103. laya.ui.Tab_API3.0 [ 79%]

...ge.addChild(tab);//将 tab 添到显示列表。 } private onSelect(index: number): void { console.log("当前选择的表情页索引: index= ", index); } } Hierarchy UIGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThroug...

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

104. laya.display.Text_API3.0 [ 79%]

...对齐显示。 Parameters value: string Returns void alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from T...

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

105. laya.ui.RadioGroup_API3.0 [ 79%]

...Group);//将 radioGroup 添加到显示列表。 } private onSelect(index: number): void { console.log("当前选择的单选按钮索引: index= ", index); } } Hierarchy UIGroup RadioGroup Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior m...

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

106. laya.ui.Dialog_API3.0 [ 79%]

...激活。 Returns boolean 在场景中是否激活。 alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from T...

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

107. 文本-滚动文本 [ 79%]

...= Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

来源: Laya2.0_示例 发布时间: 20260303

108. UI-List [ 79%]

...对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.jpg"); data.push("res/ui/listskins/4.jpg"); data.push("res/ui/listskins/5.jpg"); } list.array = ...

来源: Laya2.0_示例 发布时间: 20260303

109. UI-List [ 79%]

...对应图片的路径 var data = []; for (var i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/list...

来源: Laya_示例 发布时间: 20260303

110. laya.ui.Label_API3.0 [ 79%]

...isplay.Text#align Parameters value: string Returns void alpha get alpha(): number set alpha(value: number): void Inherited from Text.alpha Defined in laya/display/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from...

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