Skip to content

Commit

Permalink
Swapped the position and formatting of game names and titles in the M…
Browse files Browse the repository at this point in the history
…P lobby

Addresses point 2 of #2815.
  • Loading branch information
Vultraz committed Apr 3, 2018
1 parent 27ec4cd commit fbc37ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -5,6 +5,8 @@
* S12 Fixed north treasure chest disappearing
### Language and i18n
* Updated translations: Polish
### User Interface
* Swapped the position and formatting of game names and titles in the MP lobby.
### Miscellaneous and bug fixes
* Removed the Font Scaling preference. It was too buggy (issues #2792 and #1624).

Expand Down
4 changes: 2 additions & 2 deletions data/gui/window/lobby_main.cfg
Expand Up @@ -74,7 +74,7 @@
horizontal_alignment = "left"

[label]
id = "scenario"
id = "name"
definition = "default_large"
[/label]
[/column]
Expand All @@ -89,7 +89,7 @@
border_size = 3

[label]
id = "name"
id = "scenario"
definition = "default"
[/label]
[/column]
Expand Down
4 changes: 2 additions & 2 deletions src/gui/dialogs/multiplayer/lobby.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit fbc37ed

Please sign in to comment.