Hide the lobby player list when using new widgts.

Before only the lists where hidden now the entire widget.
This commit is contained in:
Mark de Wever 2010-02-08 15:26:06 +00:00
parent 8b2eb43b5f
commit d6e2cc5f38
2 changed files with 3 additions and 4 deletions

View file

@ -330,6 +330,7 @@
horizontal_grow = "true"
vertical_grow = "true"
[scrollbar_panel]
id = "old_player_list"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "auto"
[definition]

View file

@ -177,10 +177,8 @@ void tplayer_list::init(gui2::twindow &w)
, new_widgets);
if(new_widgets) {
active_game.list->set_visible(twidget::INVISIBLE);
active_room.list->set_visible(twidget::INVISIBLE);
other_rooms.list->set_visible(twidget::INVISIBLE);
other_games.list->set_visible(twidget::INVISIBLE);
find_widget<twidget>(&w, "old_player_list", false)
.set_visible(twidget::INVISIBLE);
}
if(!new_widgets && tree) {
tree->set_visible(twidget::INVISIBLE);