Add player limit feature for private lobbies

This commit is contained in:
abdallahbahrawi1
2025-12-19 13:33:43 +02:00
parent 58c7cdd46f
commit 37d358fbdc
7 changed files with 148 additions and 7 deletions
+5 -2
View File
@@ -127,7 +127,8 @@
"checking": "private_lobby.checking",
"not_found": "private_lobby.not_found",
"error": "private_lobby.error",
"joined_waiting": "private_lobby.joined_waiting"
"joined_waiting": "private_lobby.joined_waiting",
"lobby_full": "private_lobby.lobby_full"
},
"public_lobby": {
"join": "public_lobby.join",
@@ -154,7 +155,9 @@
"player": "host_modal.player",
"players": "host_modal.players",
"waiting": "host_modal.waiting",
"start": "host_modal.start"
"start": "host_modal.start",
"player_limit": "host_modal.player_limit",
"player_limit_warning": "host_modal.player_limit_warning"
},
"game_starting_modal": {
"title": "game_starting_modal.title",
+5 -2
View File
@@ -239,7 +239,8 @@
"not_found": "Lobby not found. Please check the ID and try again.",
"error": "An error occurred. Please try again or contact support.",
"joined_waiting": "Joined successfully! Waiting for game to start...",
"version_mismatch": "This game was created with a different version. Cannot join."
"version_mismatch": "This game was created with a different version. Cannot join.",
"lobby_full": "Lobby is full (limit: {limit})."
},
"public_lobby": {
"join": "Join next Game",
@@ -292,7 +293,9 @@
"assigned_teams": "Assigned Teams",
"empty_teams": "Empty Teams",
"empty_team": "Empty",
"remove_player": "Remove {username}"
"remove_player": "Remove {username}",
"player_limit": "Player limit",
"player_limit_warning": "Limit is below current player count; new players can't join."
},
"team_colors": {
"red": "Red",