大约有 8 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0020 秒)
...Target.pos(Laya.stage.mouseX, Laya.stage.mouseY); } mouseUp() { Laya.stage.off(Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.mouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.mouseUp); let rigidbody: RigidBody = this.curTarget.getComponent(RigidBody); rigidbod...
来源: Laya2.0_示例 发布时间: 20241119
...*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.onMouseUp); // 滑动到目的地 let dist = Laya.stage.mouseX - buttonPosition; ...
来源: Laya2.0_示例 发布时间: 20241119
...滚动文本 */ finishScrollText(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Event.MOUSE_UP, this, this.finishScrollText); } /* 鼠标滚动文本 */ scrollText(e) { const Event = Laya.Event; let nowX = this.txt.mouseX; let nowY = this.txt.m...
来源: Laya2.0_示例 发布时间: 20241119
...ha1(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; //移除鼠标单击事件 this.button2.off(Ev...
来源: Laya2.0_示例 发布时间: 20241119
...ge.mouseX - mLastMouseX; mY -= Laya.stage.mouseY - mLastMouseY; Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } // 窗口大小改变,把地图的视口区域重设下 resize() { // 改变地图视口大小 this.tiledMap.changeViewPort(mX, mY, Laya.Browser.width, Laya.Browser.height...
来源: Laya2.0_示例 发布时间: 20241119
...adian = nowRadian; } } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); } } new Interaction_Rotate();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.W...
来源: Laya2.0_示例 发布时间: 20241119
...Distance = distance; } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); } /**计算两个触摸点之间的距离*/ getDistance(points) { let distance = 0; if (points && points.length == 2) { let dx = points[0].stageX - points[1].stageX; let dy = poi...
来源: Laya2.0_示例 发布时间: 20241119
...hold,终止触发hold Laya.timer.clear(this, this.onHold); } Laya.stage.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Bro...
来源: Laya2.0_示例 发布时间: 20241119