Restart Animate
This commit is contained in:
parent
b4f00b8ce7
commit
d21f0fd5f3
@ -2418,7 +2418,7 @@ actions.prototype.clickAbout = function () {
|
|||||||
if (core.isPlaying())
|
if (core.isPlaying())
|
||||||
core.ui.closePanel();
|
core.ui.closePanel();
|
||||||
else
|
else
|
||||||
core.restart();
|
core.restart(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -335,8 +335,8 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
|
|||||||
}
|
}
|
||||||
|
|
||||||
////// 重新开始游戏;此函数将回到标题页面 //////
|
////// 重新开始游戏;此函数将回到标题页面 //////
|
||||||
control.prototype.restart = function() {
|
control.prototype.restart = function(noAnimate) {
|
||||||
this.showStartAnimate(true);
|
this.showStartAnimate(noAnimate);
|
||||||
if (core.bgms.length>0)
|
if (core.bgms.length>0)
|
||||||
core.playBgm(core.bgms[0]);
|
core.playBgm(core.bgms[0]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -362,8 +362,8 @@ core.prototype.startGame = function (hard, seed, route, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
////// 重新开始游戏;此函数将回到标题页面 //////
|
////// 重新开始游戏;此函数将回到标题页面 //////
|
||||||
core.prototype.restart = function() {
|
core.prototype.restart = function(noAnimate) {
|
||||||
core.control.restart();
|
core.control.restart(noAnimate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////// 系统事件相关 END ///////////
|
/////////// 系统事件相关 END ///////////
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user