Swapped the position and formatting of game names and titles in the MP lobby

Addresses point 2 of #2815.
This commit is contained in:
Charles Dang 2018-04-03 19:11:29 +11:00
parent 384ba46c86
commit 6615aa7efe
3 changed files with 6 additions and 4 deletions

View file

@ -22,6 +22,8 @@
translatable (bug #2709, bug #2732).
* Updated translations: British English, Chinese (Simplified), Czech, French,
Polish, Scottish Gaelic, Spanish, Ukrainian
### User Interface
* Swapped the position and formatting of game names and titles in the MP lobby.
### WML engine
* Support formula= key in [variable] ConditionalWML
* Support to_location in [move_unit], taking a location ID

View file

@ -74,7 +74,7 @@
horizontal_alignment = "left"
[label]
id = "scenario"
id = "name"
definition = "default_large"
[/label]
[/column]
@ -89,7 +89,7 @@
border_size = 3
[label]
id = "name"
id = "scenario"
definition = "default"
[/label]
[/column]

View file

@ -425,10 +425,10 @@ std::map<std::string, string_map> mp_lobby::make_game_row_data(const mp::game_in
color_string = (game.reloaded || game.started) ? "yellow" : "green";
}
item["label"] = colorize("<i>" + game.name + "</i>", font::GRAY_COLOR.to_hex_string());
item["label"] = game.name;
data.emplace("name", item);
item["label"] = game.scenario;
item["label"] = colorize("<i>" + game.scenario + "</i>", font::GRAY_COLOR.to_hex_string());
data.emplace("scenario", item);
item["label"] = colorize(game.status, color_string);