#include <lobby.hpp>
Public Member Functions | |
void | init (twindow &w, const std::string &id) |
void | show_toggle_callback (twidget &widget) |
void | auto_hide () |
Public Attributes | |
tlabel * | label |
tlabel * | count |
ttoggle_button * | show_toggle |
tlistbox * | list |
ttree_view_node * | tree |
tlabel * | tree_label |
void gui2::tsub_player_list::auto_hide | ( | ) |
It doesn't work here since invalidate_layout is blocked, but the widget should also be able to handle it itself. Once done the setting of the label text can also be removed.
Definition at line 112 of file lobby.cpp.
References gui2::ttree_view_node::empty(), label, gui2::tcontrol::label(), gui2::tcontrol::set_label(), gui2::ttree_view_node::size(), tree, and tree_label.
Referenced by gui2::tlobby_main::update_playerlist().
void gui2::tsub_player_list::init | ( | gui2::twindow & | w, |
const std::string & | id | ||
) |
Definition at line 76 of file lobby.cpp.
References gui2::id, and show_toggle_callback().
Referenced by gui2::tplayer_list::init().
void gui2::tsub_player_list::show_toggle_callback | ( | gui2::twidget & | widget | ) |
Definition at line 101 of file lobby.cpp.
References gui2::ttoggle_button::get_value(), gui2::twidget::tvisible::invisible, list, gui2::ttoggle_button::set_icon_name(), gui2::twidget::set_visible(), show_toggle, and gui2::twidget::tvisible::visible.
Referenced by init().
tlabel* gui2::tsub_player_list::label |
Definition at line 62 of file lobby.hpp.
Referenced by auto_hide().
tlistbox* gui2::tsub_player_list::list |
Definition at line 65 of file lobby.hpp.
Referenced by show_toggle_callback(), and gui2::tlobby_main::update_playerlist().
ttoggle_button* gui2::tsub_player_list::show_toggle |
Definition at line 64 of file lobby.hpp.
Referenced by show_toggle_callback().
ttree_view_node* gui2::tsub_player_list::tree |
Definition at line 66 of file lobby.hpp.
Referenced by auto_hide(), and gui2::tlobby_main::update_playerlist().
tlabel* gui2::tsub_player_list::tree_label |
Definition at line 67 of file lobby.hpp.
Referenced by auto_hide().