doAction keepUI
This commit is contained in:
parent
8f03393eb2
commit
58c4600fbd
@ -952,10 +952,11 @@ core.startEvents(list, x, y, callback)
|
|||||||
此函数将调用core.setEvents,然后停止勇士,再执行core.doAction()。
|
此函数将调用core.setEvents,然后停止勇士,再执行core.doAction()。
|
||||||
|
|
||||||
|
|
||||||
core.doAction()
|
core.doAction(keepUI)
|
||||||
执行下一个自定义事件。
|
执行下一个自定义事件。
|
||||||
此函数将检测事件列表是否全部执行完毕,如果是则执行回调函数。
|
此函数将检测事件列表是否全部执行完毕,如果是则执行回调函数。
|
||||||
否则,将从事件列表中弹出下一个事件,并调用core.doEvent进行执行。
|
否则,将从事件列表中弹出下一个事件,并调用core.doEvent进行执行。
|
||||||
|
如果keepUI为true,则不会清掉UI层和selector,适合于自己用脚本的绘制。
|
||||||
|
|
||||||
|
|
||||||
core.insertAction(action, x, y, callback, addToLast)
|
core.insertAction(action, x, y, callback, addToLast)
|
||||||
|
|||||||
@ -788,11 +788,13 @@ events.prototype.startEvents = function (list, x, y, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
////// 执行当前自定义事件列表中的下一个事件 //////
|
////// 执行当前自定义事件列表中的下一个事件 //////
|
||||||
events.prototype.doAction = function () {
|
events.prototype.doAction = function (keepUI) {
|
||||||
// 清空boxAnimate和UI层
|
if (!keepUI) {
|
||||||
core.clearUI();
|
// 清空boxAnimate和UI层
|
||||||
clearInterval(core.status.event.interval);
|
core.clearUI();
|
||||||
core.status.event.interval = null;
|
clearInterval(core.status.event.interval);
|
||||||
|
core.status.event.interval = null;
|
||||||
|
}
|
||||||
// 判定是否执行完毕
|
// 判定是否执行完毕
|
||||||
if (this._doAction_finishEvents()) return;
|
if (this._doAction_finishEvents()) return;
|
||||||
// 当前点坐标和前缀
|
// 当前点坐标和前缀
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user