From e418e8fd091d6701e234873f70e2cbcbcf1ab0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 10 Sep 2020 09:31:53 +0200 Subject: [PATCH] Setting the depth of the chat mode / presentation mode to 99999 to avoid melting buttons with map. --- front/src/Phaser/Game/GameScene.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 5ea28b99..8a5630dc 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -397,12 +397,14 @@ export class GameScene extends Phaser.Scene implements CenterListener { this.presentationModeSprite.setOrigin(0, 1); this.presentationModeSprite.setInteractive(); this.presentationModeSprite.setVisible(false); + this.presentationModeSprite.setDepth(99999); this.presentationModeSprite.on('pointerup', this.switchLayoutMode.bind(this)); this.chatModeSprite = this.add.sprite(36, this.game.renderer.height - 2, 'layout_modes', 3); this.chatModeSprite.setScrollFactor(0, 0); this.chatModeSprite.setOrigin(0, 1); this.chatModeSprite.setInteractive(); this.chatModeSprite.setVisible(false); + this.chatModeSprite.setDepth(99999); this.chatModeSprite.on('pointerup', this.switchLayoutMode.bind(this)); // FIXME: change this to use the UserInputManager class for input