大约有 160 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN, this, this.onStartDrag); } private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLim...
来源: Laya_社区 发布时间: 20171106
...加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Event.MOU...
来源: Laya2.0_文档 发布时间: 20210715
...Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this._onStageDown); } _onStageDown() { //创建一个点 var point = new Laya.Vector2(); var outHitResult = new Laya.HitResult(); //创建一个射线 var ray= new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya....
来源: Laya_社区 发布时间: 20200801
...; } onListMouse(e, index){ console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(this.openedItem, { "x": 0 }, 500, null, Handler.create(this, () ...
来源: Laya2.0_示例 发布时间: 20251130
...ent.RESIZE,this,on_stage_resize); Laya.stage.on(Event.MOUSE_DOWN,this,on_map_mousedown); Laya.timer.frameLoop(1,this,calcMoving); } private function on_stage_resize():void { if (this.m_IsMoving) ...
来源: Laya_社区 发布时间: 20170921
...istance(this.transform.position, this.AroundPos); Laya.stage.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():...
来源: Laya_社区 发布时间: 20170714
...istance(this.transform.position, this.AroundPos); Laya.stage.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():...
来源: Laya_社区 发布时间: 20190224
...点一下就缩小0.05倍 Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{ _picScale-=0.05; sp.scale(_picScale,_picScale); //缩小到0.7倍时,图片就不见了 ...
来源: Laya_社区 发布时间: 20200422
...} } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.d...
来源: Laya3.0_文档 发布时间: 20251010
...以用道具点击事件的阻止事件冒泡来解决 this.on(Laya.Event.MOUSE_DOWN, this, function (e) { e.stopPropagation();//阻止冒泡 console.log('@_@' + e.stageX, e.stageY); }); 另外,能分享一下,你的导弹是怎么做的吗?谢谢 2017-09-19 0 1 分享 微博 QZONE 微信 bing...
来源: Laya_社区 发布时间: 20170902