Don't hide save/load after the help show

This commit is contained in:
sergystepanov 2021-02-08 23:24:01 +03:00 committed by Sergey Stepanov
parent 7bc9661b3d
commit c01ddc869b
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -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);