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

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

1. 鼠标交互-Hold [ 100%]

...e.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(this.ape); // 鼠标交互 this.ape.on(Event.MOUSE_DOWN, this, this.onApePress); } onApePress(e) { const Event = Laya.Event; // 鼠标按下后,HOLD_TRIGGER_TIME毫秒后hold Laya.timer.once(HOLD_TRIGGER_TIME, this, this.onHold); Laya.st...

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

2. 计时器-延迟执行 [ 97%]

...; return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button1.off(Event.CLICK, this, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, this.onComplete1); } onDecreaseAlpha2(e) { const Event = Laya.Event; //移除鼠标...

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

3. UI-RefreshList [ 59%]

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

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