forked from 0ad/0ad
Adapt the number-of-players GUI objects of the lobby to support 10 and more clients.
This was SVN commit r17855.
This commit is contained in:
parent
98b4fe6d00
commit
04586c9e8b
@ -595,7 +595,7 @@ function updateGameSelection()
|
||||
|
||||
// Display the map name, number of players, the names of the players, the map size and the map type.
|
||||
Engine.GetGUIObjectByName("sgMapName").caption = translate(game.niceMapName);
|
||||
Engine.GetGUIObjectByName("sgNbPlayers").caption = game.nbp + "/" + game.tnbp;
|
||||
Engine.GetGUIObjectByName("sgNbPlayers").caption = translate("Players:") + " " + game.nbp + "/" + game.tnbp;
|
||||
Engine.GetGUIObjectByName("sgPlayersNames").caption = game.players;
|
||||
Engine.GetGUIObjectByName("sgMapSize").caption = translateMapSize(game.mapSize);
|
||||
let mapTypeIdx = g_MapTypes.Name.indexOf(game.mapType);
|
||||
|
@ -142,10 +142,7 @@
|
||||
|
||||
<object type="image" sprite="ModernDarkBoxWhite" size="3% 75%+5 97% 99%">
|
||||
<!-- Number of Players -->
|
||||
<object size="0% 3% 57% 12%" type="text" style="ModernRightLabelText">
|
||||
<translatableAttribute id="caption">Players:</translatableAttribute>
|
||||
</object>
|
||||
<object name="sgNbPlayers" size="58% 3% 70% 12%" type="text" style="ModernLeftLabelText" text_align="left"/>
|
||||
<object name="sgNbPlayers" size="3% 3% 97% 12%" type="text" style="ModernLeftLabelText" text_align="center"/>
|
||||
|
||||
<!-- Player Names -->
|
||||
<object name="sgPlayersNames" size="0 15% 100% 100%" type="text" style="MapPlayerList"/>
|
||||
|
Loading…
Reference in New Issue
Block a user