MP Lobby: removed individual Join/Observe buttons for each game

(cherry-picked from commit ffe71c5157)
This commit is contained in:
Charles Dang 2018-05-04 13:04:20 +11:00
parent e53876067d
commit 577fa7c0dd
3 changed files with 1 additions and 37 deletions

View file

@ -61,6 +61,7 @@
* Implemented MP chat message history saving (issue #1194, issue #2802).
* 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.
### WML engine
* Support formula= key in [variable] ConditionalWML
* Support to_location in [move_unit], taking a location ID

View file

@ -146,18 +146,6 @@
[/image]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "right"
border = "top,left,right"
border_size = 5
[button]
id = "join"
definition = "default"
label = _ "Join"
[/button]
[/column]
[/row]
[row]
@ -174,19 +162,6 @@
label = "misc/eye.png"
[/image]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "right"
border = "all"
border_size = 5
[button]
id = "observe"
definition = "default"
label = _ "Observe"
[/button]
[/column]
[/row]
[/grid]
[/column]

View file

@ -523,24 +523,12 @@ void mp_lobby::adjust_game_row_contents(const mp::game_info& game, grid* grid, b
map.set_config(&game_config_);
map.set_map_data(game.map_data);
button& join_button = find_widget<button>(grid, "join", false);
button& observe_button = find_widget<button>(grid, "observe", false);
join_button.set_active(game.can_join());
observe_button.set_active(game.can_observe());
if(!add_callbacks) {
return;
}
connect_signal_mouse_left_double_click(row_panel,
std::bind(&mp_lobby::enter_game_by_id, this, game.id, DO_EITHER));
connect_signal_mouse_left_click(join_button,
std::bind(&mp_lobby::enter_game_by_id, this, game.id, DO_JOIN));
connect_signal_mouse_left_click(observe_button,
std::bind(&mp_lobby::enter_game_by_id, this, game.id, DO_OBSERVE));
}
void mp_lobby::update_gamelist_filter()