MP Lobby: highlight the titles of MP games with vacant slots

(cherry-picked from commit 3e27ccaf18)
This commit is contained in:
Charles Dang 2018-05-04 14:59:17 +11:00
parent ce79934810
commit 00b908c368
2 changed files with 2 additions and 1 deletions

View file

@ -62,6 +62,7 @@
* Added a convenient button in Load Game to open your saves folder.
* Fixed context menus not dismissing on right click.
* Removed individual Join/Observe buttons for each game in the MP Lobby.
* Highlight the titles of MP games with vacant slots.
### WML engine
* Support formula= key in [variable] ConditionalWML
* Support to_location in [move_unit], taking a location ID

View file

@ -423,7 +423,7 @@ std::map<std::string, string_map> mp_lobby::make_game_row_data(const mp::game_in
color_string = (game.reloaded || game.started) ? font::YELLOW_COLOR : font::GOOD_COLOR;
}
item["label"] = game.name;
item["label"] = game.vacant_slots > 0 ? colorize(game.name, font::GOOD_COLOR) : game.name;
data.emplace("name", item);
item["label"] = colorize("<i>" + game.scenario + "</i>", font::GRAY_COLOR);