viewMaps while replaying on mobile
This commit is contained in:
parent
e8b23ff4cb
commit
15c889146d
@ -2151,6 +2151,9 @@ control.prototype.autosave = function (removeLast) {
|
||||
|
||||
/////// 实际进行自动存档 //////
|
||||
control.prototype.checkAutosave = function () {
|
||||
|
||||
if (!core.animateFrame || !core.saves || !core.saves.autosave) return;
|
||||
|
||||
core.setLocalStorage('totalTime', core.animateFrame.totalTime);
|
||||
|
||||
if (core.saves.autosave.data == null || !core.saves.autosave.updated) return;
|
||||
@ -2765,7 +2768,8 @@ control.prototype.updateStatusBar = function () {
|
||||
core.statusBar.image.toolbox.src = core.statusBar.icons.rewind.src;
|
||||
|
||||
core.statusBar.image.keyboard.src = core.statusBar.icons.book.src;
|
||||
core.statusBar.image.shop.style.opacity = 0;
|
||||
|
||||
core.statusBar.image.shop.src = core.statusBar.icons.floor.src;
|
||||
|
||||
core.statusBar.image.save.src = core.statusBar.icons.speedDown.src;
|
||||
|
||||
@ -2790,7 +2794,8 @@ control.prototype.updateStatusBar = function () {
|
||||
core.statusBar.image.toolbox.src = core.statusBar.icons.toolbox.src;
|
||||
|
||||
core.statusBar.image.keyboard.src = core.statusBar.icons.keyboard.src;
|
||||
core.statusBar.image.shop.style.opacity = 1;
|
||||
|
||||
core.statusBar.image.shop.src = core.statusBar.icons.shop.src;
|
||||
|
||||
core.statusBar.image.save.src = core.statusBar.icons.save.src;
|
||||
|
||||
|
||||
10
main.js
10
main.js
@ -490,7 +490,6 @@ main.statusBar.image.toolbox.ondblclick = function (e) {
|
||||
e.stopPropagation();
|
||||
|
||||
if (core.isReplaying()) {
|
||||
core.rewindReplay();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -516,6 +515,11 @@ main.statusBar.image.keyboard.onclick = function (e) {
|
||||
main.statusBar.image.shop.onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
|
||||
if (core.isReplaying()) {
|
||||
core.viewMapReplay();
|
||||
return;
|
||||
}
|
||||
|
||||
if (main.core.isPlaying())
|
||||
main.core.openQuickShop(true);
|
||||
}
|
||||
@ -664,7 +668,9 @@ main.dom.musicBtn.onclick = function () {
|
||||
|
||||
window.onblur = function () {
|
||||
if (main.core && main.core.control) {
|
||||
main.core.control.checkAutosave();
|
||||
try {
|
||||
main.core.control.checkAutosave();
|
||||
} catch (e) {main.log(e);}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user