HotFix style WorkAdventure

This commit is contained in:
Gregoire Parant 2021-04-12 18:17:04 +02:00
parent 5ad7787cd5
commit 4fc9a12b95
4 changed files with 28 additions and 21 deletions

View file

@ -104,7 +104,11 @@ export class MenuScene extends Phaser.Scene {
}
public revealMenuIcon(): void {
(this.menuButton.getChildByID('menuIcon') as HTMLElement).hidden = false
try {
(this.menuButton.getChildByID('menuIcon') as HTMLElement).hidden = false;
} catch (err) {
console.error(err);
}
}
openSideMenu() {

View file

@ -72,8 +72,8 @@ export class ReportMenu extends Phaser.GameObjects.DOMElement {
}
public close(): void {
gameManager.getCurrentGameScene(this.scene).userInputManager.restoreControls();
this.opened = false;
gameManager.getCurrentGameScene(this.scene).userInputManager.initKeyBoardEvent();
const mainEl = this.getChildByID('gameReport') as HTMLElement;
this.scene.tweens.add({
targets: this,