大约有 159 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(105) Laya_示例(13) Laya2.0_文档(12) Laya2.0_示例(10) Laya2.0_api(6) laya_api(6) Laya3.0_文档(6) Laya3.0_api(1)
....3 新增 MOUSE_DRAG和MOUSE_DRAG_END3.4 删除了RIGHT_MOUSE_DOWN和RIGHT_MOUSE_UP3.5 事件汇总4、LayaAir3.0 组件系统修改5、Runtime的使用差异6、2D动画2.0引擎开发者使用3.0的差异汇总 Author:谷主 && Charley [!Note] 本篇文档仅适用3.0以前的旧版引...
来源: Laya3.0_文档 发布时间: 20251010
...his.jumpCount = 0; this.gotoRun(); } })(); 同样的RunGame.js 需要增加MOUSE_UP事件来重置悬空 我们看到player.js里面是通过当前action来判断是否悬空的 因此重置悬空只需要重置为jump的动作即可(为什么不是run的动作) 因为悬空的时候 还是出...
来源: Laya_社区 发布时间: 20160801
...Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildren -...
来源: Laya_社区 发布时间: 20160803
...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 Component resetLayoutY():void 重置对象的 Y ...
来源: laya_api 发布时间: 20170929
...id 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 UIComponentEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added添加到父对象后调度。Node...
来源: Laya2.0_api 发布时间: 20190513
....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.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRota...
来源: Laya_社区 发布时间: 20170714
....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.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRota...
来源: Laya_社区 发布时间: 20190224
...n(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e.target.scale(1.1, 1.1); } //按钮还原 _onScaleBtnOut(e: Laya.Event) { console.log("取消缩放"); e.ta...
来源: Laya3.0_文档 发布时间: 20251010
....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } /** * 移动地图视口 */ private mouseMove():void{ var moveX:number = this.Map...
来源: Laya3.0_文档 发布时间: 20251010
...a.stage.on(Laya.Event.MOUSE_DOWN,this,mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP,this,mouseUp); resize(); } /** * 移动地图视口 */ function mouseMove(){ var moveX = this.MapX - (Laya.stage.mouseX - this.mLastMouseX); var moveY = this.MapY - (Laya.stage.mouseY - this.mLastMouseY); //移动地...
来源: Laya2.0_文档 发布时间: 20210715