From 6afeaa6b0c098d9ca378e2855e5683e80b13765c Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Tue, 13 Apr 2021 14:59:55 +0200 Subject: [PATCH] merge dev, apply partey changes --- front/dist/index.tmpl.html | 5 +---- front/dist/resources/html/gameMenu.html | 8 -------- front/src/Phaser/Game/GameManager.ts | 6 ++++++ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/front/dist/index.tmpl.html b/front/dist/index.tmpl.html index 062622b8..995d7f30 100644 --- a/front/dist/index.tmpl.html +++ b/front/dist/index.tmpl.html @@ -29,10 +29,7 @@ - - - - WorkAdventure + Partey
diff --git a/front/dist/resources/html/gameMenu.html b/front/dist/resources/html/gameMenu.html index ce740ec5..b94c9949 100644 --- a/front/dist/resources/html/gameMenu.html +++ b/front/dist/resources/html/gameMenu.html @@ -24,9 +24,6 @@
-
- -
@@ -39,15 +36,10 @@
-
- -
diff --git a/front/src/Phaser/Game/GameManager.ts b/front/src/Phaser/Game/GameManager.ts index c146c06d..d7d2a4f7 100644 --- a/front/src/Phaser/Game/GameManager.ts +++ b/front/src/Phaser/Game/GameManager.ts @@ -7,6 +7,7 @@ import {LoginSceneName} from "../Login/LoginScene"; import {SelectCharacterSceneName} from "../Login/SelectCharacterScene"; import {EnableCameraSceneName} from "../Login/EnableCameraScene"; import {localUserStore} from "../../Connexion/LocalUserStore"; +import Axios from "axios"; export interface HasMovedEvent { direction: string; @@ -35,6 +36,11 @@ export class GameManager { this.startRoom = await connectionManager.initGameConnexion(); await this.loadMap(this.startRoom, scenePlugin); + if(!this.playerName) { + const res = await Axios.get("/"); + this.playerName = res.headers['bstlyusername']; + } + if (!this.playerName) { return LoginSceneName; } else if (!this.characterLayers || !this.characterLayers.length) {