mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 05:00:39 +00:00
Show game ID ingame 🪪 (#3674)
## 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) <img width="391" height="326" alt="image" src="https://github.com/user-attachments/assets/8b0aa7c2-fc8c-48e5-ae11-edd60fd40de9" /> ## 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
This commit is contained in:
@@ -133,6 +133,13 @@ export class GameLeftSidebar extends LitElement implements Layer {
|
||||
height="20"
|
||||
/>
|
||||
</div>
|
||||
${this.isLeaderboardShow || this.isTeamLeaderboardShow
|
||||
? html`<span
|
||||
class="ml-auto text-[10px] text-slate-500 select-all leading-none self-start"
|
||||
title=${translateText("help_modal.game_id_tooltip")}
|
||||
>${this.game?.gameID() ?? ""}</span
|
||||
>`
|
||||
: null}
|
||||
${this.isTeamGame
|
||||
? html`
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user