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

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

1. UI-List [ 100%]

...ler = Laya.Handler; let list = new List(); Laya.stage.addChild(list); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = tr...

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

2. 缓动-缓动函数演示 [ 94%]

...dler = Laya.Handler; let easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repeatX = 1; easeFunctionsList.repeatY = 20; easeFunctionsList.vScrollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHa...

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

3. UI-Tree [ 89%]

...a); let tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"; tree.itemRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Labe...

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

4. UI-RefreshList [ 44%]

...reshList.top = 30; Laya.stage.addChild(this.refreshList); this.refreshList.itemRender = ItemBox; this.refreshList.vScrollBarSkin = ""; // 创建数据 var data = this.createData(9, "初始数据"); this.refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.st...

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