41 void update(
const std::vector<mp::user_info>& user_info,
int focused_game);
69 std::map<const tree_view_node*, const mp::user_info*>
info_map;
std::map< const tree_view_node *, const mp::user_info * > info_map
Node-to-info mappings for easy access.
const mp::user_info * get_selected_info() const
std::array< sub_list, 3 > player_lists
Main subsections of the player tree.
std::function< void(const mp::user_info *)> game_select_callback
Called with the newly-selected player when the tree's selection changes to one.
void update(const std::vector< mp::user_info > &user_info, int focused_game)
Updates the tree contents based on the given user data.
void selected_node_changed()
Connected to the tree's modified signal; forwards to game_select_callback when a player is selected.
tree_view * tree
The parent tree.
lobby_player_list_helper(decltype(user_callback) ucb, decltype(game_select_callback) gscb)
std::function< void(const mp::user_info *)> user_callback
The double click callback bound to each player's tree node.
base class of top level items, the only item which needs to store the final canvases to draw on.
std::string label
What to show in the filter's drop-down list.
Main entry points of multiplayer mode.
label * label_player_count
void update_player_count_label()
This class represents the information a client has about another player.