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:
elexis 2016-03-09 21:30:53 +00:00
parent 98b4fe6d00
commit 04586c9e8b
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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"/>