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

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

1. 鼠标交互-滑动 [ 100%]

...age.addChild(graph); } /**按下事件处理*/ function onMouseDown(e) { //添加鼠标移侦听 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移事件处理*...

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

2. 鼠标交互-鼠标交互 [ 82%]

... appendText(value) { txt.text += value; txt.scrollY = txt.maxScrollY; } /**添加提示文本*/ function createLogger() { txt = new Text(); txt.overflow = Text.SCROLL; txt.text = "请把鼠标移矩形方块,左右键操作触发相应事件\n"; txt.size(Laya.stage.width, Laya.stage.height); t...

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

3. 混合模式-Lighter [ 81%]

...1; i = animation.frames.concat(); // 反转帧 clips = clips.reverse(); // 添加已有帧末尾 animation.frames = animation.frames.concat(clips); animation.play(); return animation; } private preFixNumber(num:number, strLen:number):string { return ("0000000000" + num).slice(-strLen); } private ...

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