Fix onStatusBarClick
This commit is contained in:
parent
5942800fd8
commit
ae5d5690ba
@ -855,10 +855,8 @@ actions.prototype.onStatusBarClick = function (e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
actions.prototype._sys_onStatusBarClick = function (px, py) {
|
actions.prototype._sys_onStatusBarClick = function (px, py) {
|
||||||
if (!core.status.played) return true;
|
if (this.actionsdata.onStatusBarClick)
|
||||||
if (this.actionsdata.onStatusBarClick) {
|
return this.actionsdata.onStatusBarClick(px, py);
|
||||||
this.actionsdata.onStatusBarClick(px, py);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////// 在某个界面时的按键点击效果 ///////////////////
|
/////////////////// 在某个界面时的按键点击效果 ///////////////////
|
||||||
|
|||||||
@ -943,7 +943,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
// 可以使用 core.domStyle.isVertical 来判定当前是否是竖屏模式
|
// 可以使用 core.domStyle.isVertical 来判定当前是否是竖屏模式
|
||||||
|
|
||||||
// 如果正在执行事件,则忽略
|
// 如果正在执行事件,则忽略
|
||||||
if (core.status.event.id != null) return;
|
if (core.status.lockControl) return;
|
||||||
// 如果当前正在行走,则忽略;也可以使用 core.waitHeroToStop(callback) 来停止行走再回调执行脚本
|
// 如果当前正在行走,则忽略;也可以使用 core.waitHeroToStop(callback) 来停止行走再回调执行脚本
|
||||||
if (core.isMoving()) return;
|
if (core.isMoving()) return;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user