A config object defines a single node in a WML file, with access to child nodes.
Abstract base class for all modal dialogs.
void enter_selected_game(JOIN_MODE mode)
Enter game by index, where index is the selected game listbox row.
void show_help_callback()
void process_gamelist(const config &data)
field_bool * filter_slots_
void update_visible_games()
void update_selected_game()
virtual void post_show() override
Actions to be taken after the window has been shown.
mp::lobby_info & lobby_info_
lobby_player_list_helper player_list_
void skip_replay_changed_callback()
static std::string announcements_
virtual const std::string & window_id() const override
The ID of the window to build.
bool delay_gamelist_update_
wesnothd_connection & network_connection_
void open_match_history()
void update_gamelist_filter()
bool gamelist_diff_update_
field_bool * filter_friends_
bool delay_playerlist_update_
void process_network_data(const config &data)
widget_data make_game_row_data(const mp::game_info &game)
field_bool * filter_ignored_
void game_filter_keypress_callback(const SDL_Keycode key)
field_bool * filter_invert_
void enter_game_by_id(const int game_id, JOIN_MODE mode)
Entry wrapper for enter_game, where game is located by game id.
void update_gamelist_diff()
void show_preferences_button_callback()
static std::string server_information_
void enter_game(const mp::game_info &game, JOIN_MODE mode)
Exits the lobby and enters the given game.
static bool logout_prompt()
void user_dialog_callback(const mp::user_info *info)
void tab_switch_callback()
mp_lobby(mp::lobby_info &info, wesnothd_connection &connection, int &joined_game)
void process_gamelist_diff(const config &data)
std::size_t lobby_update_timer_
Timer for updating the lobby.
virtual void pre_show() override
Actions to be taken before showing the window.
void adjust_game_row_contents(const mp::game_info &game, grid *grid, bool add_callbacks=true)
std::vector< int > gamelist_id_at_row_
std::chrono::steady_clock::time_point last_lobby_update_
void network_handler()
Network polling callback.
void enter_game_by_index(const int index, JOIN_MODE mode)
Entry wrapper for enter_game, where game is located by index.
Specialized field class for boolean.
A widget that allows the user to input text in single line.
show_mode mode() const
Returns the dialog mode for this window.
This class represents the collective information the client has about the players and games on the se...
Implements a quit confirmation dialog.
A class that represents a TCP/IP connection to the wesnothd server.
Various uncategorised dialogs.
std::map< std::string, widget_item > widget_data
std::size_t index(std::string_view str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
This class represents the info a client has about a game on the server.
This class represents the information a client has about another player.