大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0030 秒)
... h, "#FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) this.button.size(w, h); this.button.x = (Laya.stage.width - TrackLength) / 2; this.button.y = Laya.stage.height / 2; this.button.on(Event.MOUSE_DOWN, this, this.onMous...
来源: Laya2.0_示例 发布时间: 20241117
...ler() { Laya.stage.on(Laya.Event.RESIZE, this.resize); this.resize(); } // 鼠标按下拖动地图 mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } mouseMove() { let moveX = mX - (Laya.stage.mouseX - mLastM...
来源: Laya2.0_示例 发布时间: 20241117