From 178ba508766a5406e44c6854aa9ca169e66ba032 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Wed, 27 Oct 2021 19:23:46 +0200 Subject: [PATCH] fix login screen --- front/src/Phaser/Login/LoginScene.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/front/src/Phaser/Login/LoginScene.ts b/front/src/Phaser/Login/LoginScene.ts index 6bba0290..bcd56b9b 100644 --- a/front/src/Phaser/Login/LoginScene.ts +++ b/front/src/Phaser/Login/LoginScene.ts @@ -17,7 +17,7 @@ export class LoginScene extends ResizableScene { this.name = gameManager.getPlayerName() || ""; } - preload() {} + preload() { } create() { loginSceneVisibleIframeStore.set(false); @@ -28,9 +28,10 @@ export class LoginScene extends ResizableScene { gameManager.currentStartedRoom.authenticationMandatory ) { connectionManager.loadOpenIDScreen(); - loginSceneVisibleIframeStore.set(true); + loginSceneVisibleStore.set(false); + } else { + loginSceneVisibleStore.set(true); } - loginSceneVisibleStore.set(true); } public login(name: string): void { @@ -43,7 +44,7 @@ export class LoginScene extends ResizableScene { loginSceneVisibleStore.set(false); } - update(time: number, delta: number): void {} + update(time: number, delta: number): void { } - public onResize(): void {} + public onResize(): void { } }