MP Lobby: added a game status icon for Registered Users Only
This commit is contained in:
parent
b672c24ccb
commit
fae6da9ad1
5 changed files with 4 additions and 0 deletions
BIN
data/core/images/misc/registered_users_only.png
Normal file
BIN
data/core/images/misc/registered_users_only.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 288 B |
|
@ -158,6 +158,7 @@
|
|||
{GAMELISTBOX_BODY_IMAGE "observer_icon" "misc/eye.png" "" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "shuffle_sides_icon" "misc/shuffle-sides.png" _"Assign sides to players at random" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "needs_password" "misc/key.png" _"Requires a password to join" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "registered_only" "misc/registered_users_only.png" _"Only registered users may join" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "use_map_settings" "misc/ums.png" _"Use map settings" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "reloaded" "misc/reloaded.png" _"Reloaded game" 0}
|
||||
{GAMELISTBOX_BODY_IMAGE "no_era" "misc/qmark.png" _"Unknown era" 0}
|
||||
|
|
|
@ -186,6 +186,7 @@ game_info::game_info(const config& game, const config& game_config)
|
|||
, observers(game["observer"].to_bool(true))
|
||||
, shuffle_sides(game["shuffle_sides"].to_bool(true))
|
||||
, use_map_settings(game["mp_use_map_settings"].to_bool())
|
||||
, registered_users_only(game["registered_users_only"].to_bool())
|
||||
, verified(true)
|
||||
, password_required(game["password"].to_bool())
|
||||
, have_era(true)
|
||||
|
|
|
@ -167,6 +167,7 @@ struct game_info
|
|||
bool observers;
|
||||
bool shuffle_sides;
|
||||
bool use_map_settings;
|
||||
bool registered_users_only;
|
||||
bool verified;
|
||||
bool password_required;
|
||||
bool have_era;
|
||||
|
|
|
@ -675,6 +675,7 @@ void tlobby_main::adjust_game_row_contents(const game_info& game,
|
|||
set_visible_if_exists(grid, "reloaded", game.reloaded);
|
||||
set_visible_if_exists(grid, "started", game.started);
|
||||
set_visible_if_exists(grid, "use_map_settings", game.use_map_settings);
|
||||
set_visible_if_exists(grid, "registered_only", game.registered_users_only);
|
||||
set_visible_if_exists(grid, "no_era", !game.have_era);
|
||||
|
||||
if(tbutton* join_button = dynamic_cast<tbutton*>(grid->find("join", false))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue