大约有 4 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0013 秒)
... scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ function scrollText(e) { var nowX = txt.mouseX; var nowY = txt.mouseY; txt.scrollX += prevX - nowX; txt.scrollY += prevY - nowY; prevX = nowX; prevY = nowY; } })();module laya { import Stage = Laya.Stage...
来源: Laya_示例 发布时间: 20260106
...mpleteHandler() { Laya.stage.on(Event.RESIZE, this, resize); resize(); } //鼠标按下拖动地图 function mouseDown() { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { //移动地图视口 tiledMap.moveVi...
来源: Laya_示例 发布时间: 20260106
...rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE...
来源: Laya_示例 发布时间: 20260106
...0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w, h); button.x = (Laya.stage.width - TrackLength) / 2; button.y = Laya.stage.height / 2; button.on(Event.MOUSE_DOWN, this, onMouseDown); Laya.stage.addChi...
来源: Laya_示例 发布时间: 20260106