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

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

1. UI-ComboBox [ 100%]

...oadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(skin) { const ComboBox = Laya.ComboBox, Handler = Laya.Handler; let comboBox = new ComboBox(skin, "item0,item1,item2,item3...

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

2. 文本-自动调整文本尺寸 [ 99%]

...Script三种开发语言、LayaAirIDE让项目开发更高效。class Text_AutoSize { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...

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

3. UI-RefreshList [ 57%]

...xt.fontSize = 35; tiptext.color = "#e5e5e5"; tiptext.pos(172, 20); tiptext.autoSize = true; var texArea = new TextArea(); image.addChild(texArea); texArea.hScrollBarSkin = ""; texArea.wordWrap = true; texArea.multiline = true; texArea.editable = true; texArea.text = "顶与底的列表尽头可拉...

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