From d21f0fd5f36ab88bdf544ecd6ff80a14c1480839 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Thu, 1 Nov 2018 16:22:07 +0800 Subject: [PATCH] Restart Animate --- libs/actions.js | 2 +- libs/control.js | 4 ++-- libs/core.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/actions.js b/libs/actions.js index 55068586..f9199dde 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -2418,7 +2418,7 @@ actions.prototype.clickAbout = function () { if (core.isPlaying()) core.ui.closePanel(); else - core.restart(); + core.restart(true); } diff --git a/libs/control.js b/libs/control.js index 85c96856..541c503a 100644 --- a/libs/control.js +++ b/libs/control.js @@ -335,8 +335,8 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value } ////// 重新开始游戏;此函数将回到标题页面 ////// -control.prototype.restart = function() { - this.showStartAnimate(true); +control.prototype.restart = function(noAnimate) { + this.showStartAnimate(noAnimate); if (core.bgms.length>0) core.playBgm(core.bgms[0]); } diff --git a/libs/core.js b/libs/core.js index bda156dc..35186832 100644 --- a/libs/core.js +++ b/libs/core.js @@ -362,8 +362,8 @@ core.prototype.startGame = function (hard, seed, route, callback) { } ////// 重新开始游戏;此函数将回到标题页面 ////// -core.prototype.restart = function() { - core.control.restart(); +core.prototype.restart = function(noAnimate) { + core.control.restart(noAnimate); } /////////// 系统事件相关 END ///////////