大约有 81 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0066 秒)
...老婆的遮罩层 var times=800;//持久时间 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mousemove);//事件绑定,当鼠标移动时触发mousemove事件 //把声明的第一个老婆变成灰色老婆(通过添加灰色的色彩滤镜) var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086...
来源: Laya_社区 发布时间: 20171018
....pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.pos(Laya.stage.mouseX, Laya.stage.mouseY); }; })(); 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180313
...p.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Spr...
来源: Laya2.0_示例 发布时间: 20241123
...prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText() { Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off...
来源: Laya3.0_文档 发布时间: 20241014
...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } private mouseDown():void { this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口大...
来源: Laya3.0_文档 发布时间: 20230303
...eX); MapY = MapY - (Laya.stage.mouseY - mLastMouseY); Laya.stage.off(Event.MOUSE_MOVE, this, this.mouseMove); } private function mouseDown():void { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口大小 * ...
来源: Laya2.0_文档 发布时间: 20210714
...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, mouseMove); } function mouseDown(){ this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mouseMove); } /** * 改变视口大小 * 重设地图...
来源: Laya2.0_文档 发布时间: 20210715
...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } private mouseDown():void { this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口大...
来源: Laya2.0_文档 发布时间: 20210715
....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...
来源: Laya_社区 发布时间: 20170714
....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...
来源: Laya_社区 发布时间: 20190224