drawConfirmBox closePanel

This commit is contained in:
oc 2019-02-20 21:51:16 +08:00
parent b11d833988
commit aef9651610
3 changed files with 3 additions and 1 deletions

View File

@ -2062,6 +2062,7 @@ actions.prototype.clickSyncSave = function (x,y) {
core.removeLocalForage("save"+i);
}
}
core.ui.closePanel();
core.drawText("读取成功!\n你的本地所有存档均已被覆盖。");
}, function () {
core.status.event.selection=0;

View File

@ -2369,6 +2369,7 @@ control.prototype.syncLoad = function () {
core.removeLocalForage("save"+i);
}
}
core.ui.closePanel();
core.drawText("同步成功!\n你的本地所有存档均已被覆盖。");
}, function () {
core.status.event.selection=0;

View File

@ -278,7 +278,7 @@ events.prototype.gameOver = function (ending, fromReplay, norank) {
var doUpload = function(username) {
var hp = core.status.hero.hp;
if (username==undefined) hp = 1;
core.ui.closePanel();
// upload
var formData = new FormData();
formData.append('type', 'score');