Fix menu
This commit is contained in:
parent
0f7f42b6f1
commit
987c80c9c4
1 changed files with 2 additions and 1 deletions
|
@ -110,6 +110,7 @@ export class MenuScene extends Phaser.Scene {
|
||||||
if (!this.sideMenuOpened) return;
|
if (!this.sideMenuOpened) return;
|
||||||
this.sideMenuOpened = false;
|
this.sideMenuOpened = false;
|
||||||
this.closeAll();
|
this.closeAll();
|
||||||
|
this.menuButton.getChildByID('openMenuButton').innerHTML = `<img src="/static/images/menu.svg">`;
|
||||||
gameManager.getCurrentGameScene(this).ConsoleGlobalMessageManager.disabledMessageConsole();
|
gameManager.getCurrentGameScene(this).ConsoleGlobalMessageManager.disabledMessageConsole();
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: this.menuElement,
|
targets: this.menuElement,
|
||||||
|
@ -121,6 +122,7 @@ export class MenuScene extends Phaser.Scene {
|
||||||
|
|
||||||
private openGameSettingsMenu(): void {
|
private openGameSettingsMenu(): void {
|
||||||
if (this.settingsMenuOpened) {
|
if (this.settingsMenuOpened) {
|
||||||
|
this.closeGameQualityMenu();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//close all
|
//close all
|
||||||
|
@ -278,6 +280,5 @@ export class MenuScene extends Phaser.Scene {
|
||||||
private closeAll(){
|
private closeAll(){
|
||||||
this.closeGameQualityMenu();
|
this.closeGameQualityMenu();
|
||||||
this.closeGameShare();
|
this.closeGameShare();
|
||||||
this.menuButton.getChildByID('openMenuButton').innerHTML = `<img src="/static/images/menu.svg">`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue