diff --git a/resources/lang/en.json b/resources/lang/en.json index 6f06528dc..9750864e8 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -187,7 +187,9 @@ "icon_request": "Envelope - Alliance request. This player has sent you an alliance request.", "info_enemy_panel": "Enemy info panel", "exit_confirmation": "Are you sure you want to exit the game?", - "bomb_direction": "Atom / Hydrogen bomb arc direction" + "bomb_direction": "Atom / Hydrogen bomb arc direction", + "icon_alt_player_leaderboard": "Player Leaderboard Icon", + "icon_alt_team_leaderboard": "Team Leaderboard Icon" }, "single_modal": { "title": "Solo", diff --git a/src/client/graphics/layers/GameLeftSidebar.ts b/src/client/graphics/layers/GameLeftSidebar.ts index 351d839a2..ef3650f82 100644 --- a/src/client/graphics/layers/GameLeftSidebar.ts +++ b/src/client/graphics/layers/GameLeftSidebar.ts @@ -16,8 +16,11 @@ export class GameLeftSidebar extends LitElement implements Layer { private isLeaderboardShow = false; @state() private isTeamLeaderboardShow = false; + @state() private isVisible = false; + @state() private isPlayerTeamLabelVisible = false; + @state() private playerTeam: string | null = null; private playerColor: Colord = new Colord("#FFFFFF"); @@ -59,7 +62,7 @@ export class GameLeftSidebar extends LitElement implements Layer { this.requestUpdate(); } - if (!this.game.inSpawnPhase()) { + if (!this.game.inSpawnPhase() && this.isPlayerTeamLabelVisible) { this.isPlayerTeamLabelVisible = false; this.requestUpdate(); } @@ -91,27 +94,7 @@ export class GameLeftSidebar extends LitElement implements Layer { this.isVisible ? "translate-x-0" : "hidden" }`} > - ${this.isPlayerTeamLabelVisible - ? html` -