mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 10:30:10 +00:00
JoinLobbyModal for public and private lobbies (#3097)
## Description: Replaced the src/client/JoinPrivateLobbyModal.ts with a new src/client/JoinLobbyModal.ts which handles both public + private lobbies. <img width="771" height="714" alt="image" src="https://github.com/user-attachments/assets/7ac55d91-3f0c-4f99-b960-cea9e617538d" /> also made a "connecting" to the lobby <img width="772" height="708" alt="image" src="https://github.com/user-attachments/assets/a2812462-c5f4-459a-b63a-49d93bb2a6a2" /> It also needed to be updated to address the issue with the modal using both polling + websockets ## 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: w.o.n
This commit is contained in:
+10
-3
@@ -21,7 +21,8 @@
|
||||
"target_dead_note": "You can't send resources to an eliminated player.",
|
||||
"none": "None",
|
||||
"copied": "Copied!",
|
||||
"click_to_copy": "Click to copy"
|
||||
"click_to_copy": "Click to copy",
|
||||
"enabled": "Enabled"
|
||||
},
|
||||
"main": {
|
||||
"title": "OpenFront (ALPHA)",
|
||||
@@ -371,18 +372,23 @@
|
||||
"disabled_units": "Disabled Units"
|
||||
},
|
||||
"public_lobby": {
|
||||
"title": "Waiting for Game Start...",
|
||||
"join": "Join next Game",
|
||||
"waiting": "players waiting",
|
||||
"teams_Duos": "{team_count} teams of 2 (Duos)",
|
||||
"teams_Trios": "{team_count} teams of 3 (Trios)",
|
||||
"teams_Quads": "{team_count} teams of 4 (Quads)",
|
||||
"waiting_for_players": "Waiting for players",
|
||||
"connecting": "Connecting to lobby...",
|
||||
"starting_in": "Starting in {time}",
|
||||
"starting_game": "Starting game…",
|
||||
"teams_hvn": "Humans vs Nations",
|
||||
"teams_hvn_detailed": "{num} Humans vs {num} Nations",
|
||||
"teams": "{num} teams",
|
||||
"players_per_team": "of {num}",
|
||||
"started": "Started"
|
||||
"started": "Started",
|
||||
"status": "Status",
|
||||
"join_timeout": "You didn't enter the game in time."
|
||||
},
|
||||
"matchmaking_modal": {
|
||||
"title": "1v1 Ranked Matchmaking (ALPHA)",
|
||||
@@ -467,7 +473,8 @@
|
||||
},
|
||||
"game_mode": {
|
||||
"ffa": "Free for All",
|
||||
"teams": "Teams"
|
||||
"teams": "Teams",
|
||||
"humans_vs_nations": "Humans vs Nations"
|
||||
},
|
||||
"public_game_modifier": {
|
||||
"random_spawn": "Random Spawn",
|
||||
|
||||
Reference in New Issue
Block a user