mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-20 16:54:25 +00:00
Don't hide save/load after the help show
This commit is contained in:
parent
7bc9661b3d
commit
c01ddc869b
1 changed files with 4 additions and 3 deletions
7
web/js/controller.js
vendored
7
web/js/controller.js
vendored
|
|
@ -98,14 +98,15 @@
|
|||
show: function (show, event) {
|
||||
if (this.shown === show) return;
|
||||
|
||||
if (state === app.state.game) {
|
||||
const isGameScreen = state === app.state.game
|
||||
if (isGameScreen) {
|
||||
stream.toggle(!show);
|
||||
} else {
|
||||
menuScreen.toggle(!show);
|
||||
}
|
||||
|
||||
keyButtons[KEY.SAVE].toggle(show);
|
||||
keyButtons[KEY.LOAD].toggle(show);
|
||||
keyButtons[KEY.SAVE].toggle(show || isGameScreen);
|
||||
keyButtons[KEY.LOAD].toggle(show || isGameScreen);
|
||||
|
||||
helpOverlay.toggle(show);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue