32 if(!blocker->prompt_()) {
62 std::size_t humans_notme_cnt = 0;
66 if(
t.is_network_human()) {
72 if(!(pmc ==
nullptr || humans_notme_cnt < 1 || pmc->is_linger_mode() || pmc->
is_observer())) {
static display * get_singleton()
Returns the display object if a display object exists.
std::size_t viewing_team_index() const
The viewing team is the team currently viewing the game.
@ yes_no_buttons
Shows a yes and no button.
bool show(const unsigned auto_close_time=0)
Shows the window.
int get_retval() const
Returns the cached window exit code.
This shows the dialog to confirm surrender and/or quitting the game.
std::vector< team > & get_teams()
void surrender(int side_number)
Implements a quit confirmation dialog.
static bool default_prompt()
static bool show_prompt(const std::string &message)
static std::vector< quit_confirmation * > blockers_
static bool quit()
Shows the quit confirmation if needed.
static void quit_to_desktop()
static void quit_to_title()
Type that can be thrown as an exception to quit to desktop.
Contains the exception interfaces used to signal completion of a scenario, campaign or turn.
void throw_quit_game_exception()
static std::string _(const char *str)
void show_message(const std::string &title, const std::string &msg, const std::string &button_caption, const bool auto_close, const bool message_use_markup, const bool title_use_markup)
Shows a message to the user.
retval
Default window/dialog return values.
@ CANCEL
Dialog was closed with the CANCEL button.
play_controller * controller
auto reversed_view(T &container)