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

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

1. UI-Tree [ 100%]

...der 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:折叠状态、打开状态。 folder.x = 14; folder.y = 4; this.addChild(folder); let label = new Label("treeItem"); label.name = "label"; // 设置 label 的name 为“label”时,此值将用于树...

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

2. 输入设备-贪吃蛇(重力感应) [ 57%]

...e.bgColor = "#232628"; // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一...

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

3. UI-RefreshList [ 50%]

...单元格对象 */ this.openedItem = null; /** 记录模拟数据的红点状态 */ this.redHotStatus =[]; /** 纪录鼠标按下状态,true为已按下,用于状态判断 */ this.mouseDown=false; /** 初始化场景 * */ /** 关联引擎的滚动限制接口 */ /**列表的鼠标事件处理,...

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