From 4e04bed44cf8c97bf4351eb3503866190ad99b7a Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:48:37 +0200 Subject: [PATCH] =?UTF-8?q?Show=20game=20ID=20ingame=20=F0=9F=AA=AA=20(#36?= =?UTF-8?q?74)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Instead of begging youtubers to share their game id to be able to debug: Display the current game ID in the top-right corner of the in-game leaderboard panel (there was unused space) image ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin --- resources/lang/en.json | 3 ++- src/client/graphics/layers/GameLeftSidebar.ts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index 04d55553f..b827a0027 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -185,7 +185,8 @@ "exit_confirmation": "Are you sure you want to exit the game?", "bomb_direction": "Atom / Hydrogen bomb arc direction", "icon_alt_player_leaderboard": "Player Leaderboard Icon", - "icon_alt_team_leaderboard": "Team Leaderboard Icon" + "icon_alt_team_leaderboard": "Team Leaderboard Icon", + "game_id_tooltip": "Game ID" }, "single_modal": { "random_spawn": "Random spawn", diff --git a/src/client/graphics/layers/GameLeftSidebar.ts b/src/client/graphics/layers/GameLeftSidebar.ts index 79b7bf76e..a50303ab7 100644 --- a/src/client/graphics/layers/GameLeftSidebar.ts +++ b/src/client/graphics/layers/GameLeftSidebar.ts @@ -133,6 +133,13 @@ export class GameLeftSidebar extends LitElement implements Layer { height="20" /> + ${this.isLeaderboardShow || this.isTeamLeaderboardShow + ? html`${this.game?.gameID() ?? ""}` + : null} ${this.isTeamGame ? html`