Namespaces | |
tip | |
Classes | |
class | achievements_dialog |
class | addon_auth |
class | addon_connect |
class | install_dependencies |
class | addon_license_prompt |
class | addon_manager |
class | addon_uninstall_list |
class | attack_predictions |
class | campaign_difficulty |
class | campaign_selection |
class | chat_log |
class | core_selection |
class | debug_clock |
class | depcheck_confirm_change |
class | depcheck_select_new |
class | drop_down_menu |
Used by the menu_button widget. More... | |
class | edit_label |
class | edit_text |
class | editor_choose_addon |
class | custom_tod |
class | editor_edit_label |
class | editor_edit_pbl |
class | editor_edit_pbl_translation |
class | editor_edit_scenario |
class | editor_edit_side |
class | editor_edit_unit |
Dialog that allows user to create custom unit types. More... | |
class | editor_generate_map |
class | generator_settings |
class | editor_new_map |
class | editor_resize_map |
class | tod_new_schedule |
Dialog that takes new schedule ID and name from the player. More... | |
class | end_credits |
class | file_dialog |
class | file_progress |
class | folder_create |
class | bookmark_create |
class | formula_debugger |
class | game_cache_options |
class | game_delete |
class | game_load |
class | game_save |
class | game_save_message |
class | game_save_oos |
class | game_stats |
class | game_version |
class | stuff_list_adder |
class | single_mode_controller |
class | variable_mode_controller |
class | event_mode_controller |
class | unit_mode_controller |
class | team_mode_controller |
class | gamestate_inspector |
class | gui_test_dialog |
A test dialog for testing various gui2 features. More... | |
class | help_browser |
Help browser dialog. More... | |
class | hotkey_bind |
class | label_settings |
class | language_selection |
class | loading_screen |
class | log_settings |
class | lua_interpreter |
struct | message_implementation |
Helper to implement private functions without modifying the header. More... | |
class | message |
Main class to show messages to the user. More... | |
class | migrate_version_selection |
This shows the dialog to select a previous version of Wesnoth to migrate preferences from and redownload add-ons. More... | |
class | modal_dialog |
Abstract base class for all modal dialogs. More... | |
class | modeless_dialog |
The popup class shows windows that are shown non-modal. More... | |
class | faction_select |
struct | lobby_delay_gamelist_update_guard |
class | mp_lobby |
class | mp_match_history |
class | mp_alerts_options |
class | mp_change_control |
class | mp_connect |
class | mp_create_game |
class | mp_host_game_prompt |
class | mp_join_game |
class | mp_join_game_password_prompt |
class | mp_login |
class | mp_method_selection |
class | mp_options_helper |
class | mp_report |
class | mp_staging |
class | lobby_player_info |
class | plugin_executor |
class | synched_choice_wait |
class | network_transmission |
Dialog that tracks network transmissions. More... | |
class | outro |
Dialog to display 'The End' at the end of a campaign. More... | |
class | preferences_dialog |
class | prompt |
class | screenshot_notification |
class | select_orb_colors |
class | server_info |
class | simple_item_selector |
class | sp_options_configure |
struct | hitrate_table_element |
class | statistics_dialog |
class | story_viewer |
Dialog to view the storyscreen. More... | |
class | surrender_quit |
This shows the dialog to confirm surrender and/or quitting the game. More... | |
class | terrain_layers |
class | theme_list |
class | title_screen |
This class implements the title screen. More... | |
class | tooltip |
At the moment two kinds of tips are known: More... | |
class | transient_message |
Shows a transient message. More... | |
class | unit_advance |
class | unit_attack |
class | unit_create |
class | unit_list |
class | unit_recall |
class | unit_recruit |
class | wml_error |
class | wml_message_option |
Helper class for message options. More... | |
class | wml_message_base |
Base class for the wml generated messages. More... | |
class | wml_message_left |
Shows a dialog with the portrait on the left side. More... | |
class | wml_message_right |
Shows a dialog with the portrait on the right side. More... | |
class | wml_message_double |
Shows a dialog with two portraits, one on each side. More... | |
struct | wml_message_options |
Parameter pack for message list input options. More... | |
struct | wml_message_input |
Parameter pack for message text input options. More... | |
struct | wml_message_portrait |
Parameter pack for message portrait. More... | |
Typedefs | |
using | hp_probability_vector = std::vector< std::pair< int, double > > |
Functions | |
static std::string | describe_status_verbose (const addon_tracking_info &state) |
static std::string | format_addon_time (const std::chrono::system_clock::time_point &time) |
static std::string | get_probability_string (const double prob) |
config | generate_difficulty_config (const config &source) |
Helper function to convert old difficulty markup. More... | |
static custom_tod::string_pair | tod_getter_image (const time_of_day &tod) |
static custom_tod::string_pair | tod_getter_mask (const time_of_day &tod) |
static custom_tod::string_pair | tod_getter_sound (const time_of_day &tod) |
REGISTER_DIALOG (editor_edit_unit) | |
static int | resize_grid_xy_to_idx (const int x, const int y) |
Convert a coordinate on a 3 by 3 grid to an index, return 9 for out of bounds. More... | |
REGISTER_DIALOG (tod_new_schedule) | |
static bool | get_dont_ask_again () |
Helper to invert .ask_delete_saves. More... | |
static void | set_dont_ask_again (const bool ask_again) |
Helper to invert .set_ask_delete_saves. More... | |
static std::string | controller_name (const team &t) |
static stuff_list_adder | add_unit_entry (stuff_list_adder &progress, const unit &u, const display_context &dc) |
static void | revert_to_default_pref_values (window &window) |
static bool | get_do_not_show_again () |
Helper for .ask_delete_saves. More... | |
static void | set_do_not_show_again (const bool do_not_show_again) |
Helper for .set_ask_delete_saves. More... | |
static std::string | generate_user_description (const config &side) |
static bool | sound () |
static bool | set_sound (bool v) |
static int | sound_volume () |
static void | set_sound_volume (int v) |
static bool | music_on () |
static bool | set_music (bool v) |
static int | music_volume () |
static void | set_music_volume (int v) |
static bool | turn_bell () |
static bool | set_turn_bell (bool v) |
static int | bell_volume () |
static void | set_bell_volume (int v) |
static bool | ui_sound_on () |
static bool | set_ui_sound (bool v) |
static int | ui_volume () |
static void | set_ui_volume (int v) |
static std::ostream & | write_actual_and_expected (std::ostream &str, const long long actual, const double expected) |
static hitrate_table_element | tally (const statistics_t::stats::hitrate_map &by_cth, const bool more_is_better) |
static config | get_title_area_decor_config () |
static void | launch_lua_console () |
static void | make_screenshot () |
static std::string | format_level_string (const int level) |
static std::string | format_if_leader (unit_const_ptr u, const std::string &str) |
static std::string | format_movement_string (unit_const_ptr u) |
void | show_unit_list (display &gui) |
template<typename T > | |
static void | dump_recall_list_to_console (const T &units) |
static const std::string | maybe_inactive (const std::string &str, bool active) |
static std::string | format_level_string (const int level, bool recallable) |
static std::string | format_cost_string (int unit_recall_cost, const int team_recall_cost) |
static std::string | get_title_suffix (int side_num) |
static std::string | gray_if_unrecruitable (const std::string &text, const bool is_recruitable) |
int | show_wml_message (const std::string &title, const std::string &message, const wml_message_portrait *left, const wml_message_portrait *right, const wml_message_options &options, const wml_message_input &input) |
Helper function to show a portrait. More... | |
std::string | get_modal_dialog_id (const modal_dialog &dialog) |
std::string | get_modeless_dialog_id (const modeless_dialog &dialog) |
Variables | |
const std::array | type_values |
const std::array | tag_values |
static int | max_coastal = 5 |
static int | extra_size_per_player = 2 |
static int | min_size = 20 |
static const int | LOAD_GAME = 100 |
static const std::string | forum_registration_url = "https://forums.wesnoth.org/ucp.php?mode=register" |
static const unsigned int | LAYER_BACKGROUND = 1 |
static const unsigned int | LAYER_TEXT = 2 |
bool | show_debug_clock_button = false |
Do we wish to show the button for the debug clock. More... | |
static listbox::order_pair | sort_last {-1, sort_order::type::none} |
static listbox::order_pair | sort_default { 2, sort_order::type::descending} |
static const color_t | inactive_row_color (0x96, 0x96, 0x96) |
static const color_t | inactive_row_color (0x96, 0x96, 0x96) |
using gui2::dialogs::hp_probability_vector = typedef std::vector<std::pair<int, double> > |
Definition at line 33 of file attack_predictions.hpp.
|
static |
Definition at line 583 of file gamestate_inspector.cpp.
References unit::can_recruit(), team::color(), unit::experience(), unit::get_location(), display_context::get_team(), unit::get_traits_list(), unit::hitpoints(), unit::id(), utils::join(), unit::level(), unit::max_experience(), unit::max_hitpoints(), s, unit::side(), markup::span_color(), game_config::tc_info(), unit::type_id(), and gui2::dialogs::stuff_list_adder::widget().
Referenced by gui2::dialogs::unit_mode_controller::show_list(), and gui2::dialogs::team_mode_controller::show_recall().
|
static |
Definition at line 392 of file preferences_dialog.cpp.
References prefs::bell_volume(), and prefs::get().
Referenced by prefs::bell_volume(), sound::init_sound(), and prefs::set_bell_volume().
|
static |
Definition at line 61 of file game_stats.cpp.
References _(), names, markup::span_color(), t, and markup::tag().
Referenced by gui2::dialogs::game_stats::pre_show(), and ng::side_engine::set_controller_commandline().
|
static |
Definition at line 238 of file manager.cpp.
References _(), ADDON_INSTALLED, ADDON_INSTALLED_BROKEN, ADDON_INSTALLED_LOCAL_ONLY, ADDON_INSTALLED_OUTDATED, ADDON_INSTALLED_UPGRADABLE, ADDON_NONE, ADDON_NOT_TRACKED, addon_tracking_info::can_publish, gui2::addon_list::colorize_addon_state_string(), addon_tracking_info::installed_version, utils::interpolate_variables_into_string(), s, addon_tracking_info::state, and version_info::str().
Referenced by gui2::dialogs::addon_manager::on_addon_select().
|
static |
Definition at line 67 of file unit_recall.cpp.
References log_display, LOG_DP, and log_scope2.
Referenced by gui2::dialogs::unit_recall::dismiss_unit().
|
static |
Definition at line 1025 of file manager.cpp.
References _(), prefs::get(), translation::strftime(), font::unicode_em_dash, and prefs::use_twelve_hour_clock_format().
Referenced by gui2::dialogs::addon_manager::on_addon_select().
|
static |
Definition at line 106 of file unit_recall.cpp.
References markup::span_color().
Referenced by gui2::dialogs::unit_recall::pre_show().
|
static |
Definition at line 61 of file unit_list.cpp.
References markup::span_color().
Referenced by gui2::dialogs::unit_list::pre_show().
|
static |
Definition at line 47 of file unit_list.cpp.
References markup::bold(), game_config::images::level, and markup::span_color().
Referenced by gui2::dialogs::unit_list::pre_show(), and gui2::dialogs::unit_recall::pre_show().
|
static |
Definition at line 89 of file unit_recall.cpp.
References markup::bold(), inactive_row_color, game_config::images::level, and markup::span_color().
|
static |
Definition at line 66 of file unit_list.cpp.
References moves_left, and markup::span_color().
Referenced by gui2::dialogs::unit_list::pre_show().
Helper function to convert old difficulty markup.
Declared outside class to allow other classes to make use of it.
Definition at line 37 of file campaign_difficulty.cpp.
References config::append_children(), deprecated_message(), config::empty(), and REMOVED.
Referenced by gui2::dialogs::campaign_selection::campaign_selected(), and mp::game_info::game_info().
|
static |
Definition at line 208 of file mp_join_game.cpp.
References _(), config::get(), and VGETTEXT.
Referenced by gui2::dialogs::mp_join_game::generate_side_list().
|
static |
Helper for .ask_delete_saves.
Definition at line 29 of file mp_host_game_prompt.cpp.
References prefs::get().
Referenced by gui2::dialogs::mp_host_game_prompt::mp_host_game_prompt().
|
static |
Helper to invert .ask_delete_saves.
The value stored and the way shown is inverted.
Definition at line 30 of file game_delete.cpp.
References prefs::get().
Referenced by gui2::dialogs::game_delete::game_delete().
std::string gui2::dialogs::get_modal_dialog_id | ( | const modal_dialog & | dialog | ) |
This is used in the unit tests, but these implementation details shouldn't be used in the normal code.
Definition at line 179 of file test_gui2.cpp.
std::string gui2::dialogs::get_modeless_dialog_id | ( | const modeless_dialog & | dialog | ) |
This is used in the unit tests, but these implementation details shouldn't be used in the normal code.
Definition at line 184 of file test_gui2.cpp.
|
static |
Definition at line 60 of file attack_predictions.cpp.
Referenced by gui2::dialogs::attack_predictions::draw_hp_graph(), gui2::dialogs::attack_predictions::set_data(), and tally().
|
static |
Definition at line 40 of file story_viewer.cpp.
Referenced by gui2::dialogs::story_viewer::display_part().
|
static |
Definition at line 125 of file unit_recall.cpp.
References unit_map::end(), unit_map::find_leader(), resources::gameboard, team::is_local_human(), wfl::msg(), team::recruits(), team::side(), and game_board::units().
Referenced by gui2::dialogs::unit_recall::pre_show().
|
inlinestatic |
Definition at line 56 of file unit_recruit.cpp.
References inactive_row_color, and markup::span_color().
Referenced by gui2::dialogs::unit_recruit::pre_show().
|
static |
Definition at line 105 of file title_screen.cpp.
References gui2::dialogs::lua_interpreter::APP, and gui2::dialogs::lua_interpreter::display().
Referenced by gui2::dialogs::title_screen::init_callbacks().
|
static |
Definition at line 110 of file title_screen.cpp.
References _(), filename, filesystem::get_next_filename(), filesystem::get_screenshot_dir(), and video::read_pixels().
Referenced by hotkey::command_executor::execute_command_wrap(), gui2::dialogs::title_screen::init_callbacks(), and hotkey::command_executor_default::map_screenshot().
|
inlinestatic |
Definition at line 81 of file unit_recall.cpp.
References inactive_row_color, and markup::span_color().
Referenced by gui2::dialogs::unit_recall::pre_show().
|
static |
Definition at line 384 of file preferences_dialog.cpp.
References prefs::get(), and prefs::music_on().
Referenced by hotkey::command_executor::execute_command_wrap(), game_launcher::game_launcher(), sound::music_muter::handle_window_event(), sound::play_new_music(), and sound::music_thinker::process().
|
static |
Definition at line 386 of file preferences_dialog.cpp.
References prefs::get(), and prefs::music_volume().
Referenced by impl_music_get(), impl_music_set(), sound::init_sound(), prefs::music_volume(), and prefs::set_music_volume().
gui2::dialogs::REGISTER_DIALOG | ( | editor_edit_unit | ) |
gui2::dialogs::REGISTER_DIALOG | ( | tod_new_schedule | ) |
|
static |
Convert a coordinate on a 3 by 3 grid to an index, return 9 for out of bounds.
Definition at line 78 of file resize_map.cpp.
Referenced by gui2::dialogs::editor_resize_map::update_expand_direction().
|
static |
Definition at line 79 of file mp_alerts_options.cpp.
References prefs::clear_mp_alert_prefs(), prefs::get(), and RESET_DEFAULT.
Referenced by gui2::dialogs::mp_alerts_options::pre_show().
|
static |
Definition at line 393 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_bell_volume().
|
static |
Helper for .set_ask_delete_saves.
Definition at line 37 of file mp_host_game_prompt.cpp.
References prefs::get().
Referenced by gui2::dialogs::mp_host_game_prompt::mp_host_game_prompt().
|
static |
Helper to invert .set_ask_delete_saves.
The value stored and the way shown is inverted.
Definition at line 40 of file game_delete.cpp.
References prefs::get().
Referenced by gui2::dialogs::game_delete::game_delete().
|
static |
Definition at line 385 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_music().
|
static |
Definition at line 387 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_music_volume().
|
static |
Definition at line 379 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_sound().
|
static |
Definition at line 381 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_sound_volume().
|
static |
Definition at line 391 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_turn_bell().
|
static |
Definition at line 397 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_ui_sound().
|
static |
Definition at line 399 of file preferences_dialog.cpp.
References prefs::get(), and prefs::set_ui_volume().
void gui2::dialogs::show_unit_list | ( | display & | gui | ) |
Definition at line 184 of file unit_list.cpp.
References unit_map::begin(), unit_map::end(), gui2::dialogs::unit_list::execute(), i, and display::WARP.
Referenced by events::menu_handler::unit_list(), and editor::editor_controller::unit_list().
int gui2::dialogs::show_wml_message | ( | const std::string & | title, |
const std::string & | message, | ||
const wml_message_portrait * | left, | ||
const wml_message_portrait * | right, | ||
const wml_message_options & | options, | ||
const wml_message_input & | input | ||
) |
Helper function to show a portrait.
title | The title of the dialog. |
message | The message to show. |
left | Portrait to show on the left. |
right | Portrait to show on the right. |
options | Options to offer. |
input | Info on text input. |
Definition at line 155 of file wml_message.cpp.
Referenced by lua_gui2::show_message_dialog().
|
static |
Definition at line 378 of file preferences_dialog.cpp.
References prefs::get(), and prefs::sound().
Referenced by unit_animation::add_anims(), hotkey::command_executor::execute_command_wrap(), unit_animation::fill_initial_animations(), game_launcher::game_launcher(), countdown_clock::maybe_play_sound(), sound::play_sound(), sound::play_sound_positioned(), sound::play_timer(), prefs::set_sound(), and prefs::sound().
|
static |
Definition at line 380 of file preferences_dialog.cpp.
References prefs::get(), and prefs::sound_volume().
Referenced by sound::init_sound(), prefs::set_sound_volume(), and prefs::sound_volume().
|
static |
Definition at line 204 of file statistics_dialog.cpp.
References _(), unit_type_data::build_unit_type(), combatant::fight(), get_probability_string(), i, n, game_config::red_to_green(), markup::span_color(), tooltip, font::unicode_em_dash, unit_types, and write_actual_and_expected().
Referenced by gui2::dialogs::statistics_dialog::add_hits_row().
|
static |
Definition at line 41 of file custom_tod.cpp.
References time_of_day::image.
Referenced by gui2::dialogs::custom_tod::pre_show().
|
static |
Definition at line 47 of file custom_tod.cpp.
References time_of_day::image_mask.
Referenced by gui2::dialogs::custom_tod::pre_show().
|
static |
Definition at line 53 of file custom_tod.cpp.
References time_of_day::sounds.
Referenced by gui2::dialogs::custom_tod::pre_show().
|
static |
Definition at line 390 of file preferences_dialog.cpp.
References prefs::get(), and prefs::turn_bell().
|
static |
Definition at line 396 of file preferences_dialog.cpp.
References prefs::get(), and prefs::ui_sound_on().
Referenced by game_launcher::game_launcher(), countdown_clock::maybe_play_sound(), sound::play_UI_sound(), and mp::ui_alerts::ready_for_start().
|
static |
Definition at line 398 of file preferences_dialog.cpp.
References prefs::get(), and prefs::ui_volume().
Referenced by sound::init_sound(), prefs::set_ui_volume(), and prefs::ui_volume().
|
static |
Definition at line 129 of file statistics_dialog.cpp.
Referenced by gui2::dialogs::statistics_dialog::add_damage_row(), and tally().
|
static |
Definition at line 31 of file generator_settings.cpp.
Referenced by gui2::dialogs::generator_settings::adjust_minimum_size_by_players().
|
static |
Definition at line 33 of file mp_method_selection.cpp.
Referenced by gui2::dialogs::mp_method_selection::pre_show().
|
static |
Referenced by format_level_string(), gray_if_unrecruitable(), maybe_inactive(), and gui2::dialogs::unit_recall::pre_show().
|
static |
|
static |
Definition at line 53 of file story_viewer.cpp.
Referenced by gui2::dialogs::story_viewer::display_part().
|
static |
Definition at line 54 of file story_viewer.cpp.
Referenced by gui2::dialogs::story_viewer::display_part().
|
static |
Definition at line 57 of file mp_create_game.cpp.
Referenced by gui2::dialogs::mp_create_game::load_game_callback(), and gui2::dialogs::mp_create_game::post_show().
|
static |
Definition at line 30 of file generator_settings.cpp.
Referenced by default_map_generator::generate_map(), and gui2::dialogs::generator_settings::pre_show().
|
static |
Definition at line 32 of file generator_settings.cpp.
Referenced by gui2::dialogs::generator_settings::adjust_minimum_size_by_players(), terrain_builder::build_terrains(), gui2::styled_widget::request_reduce_height(), and gui2::styled_widget::request_reduce_width().
bool gui2::dialogs::show_debug_clock_button = false |
Do we wish to show the button for the debug clock.
Definition at line 74 of file title_screen.cpp.
Referenced by game_launcher::game_launcher(), gui2::dialogs::title_screen::init_callbacks(), and gui2::dialogs::title_screen::show_debug_clock_window().
|
static |
Definition at line 52 of file unit_recall.cpp.
Referenced by gui2::dialogs::unit_recall::pre_show().
|
static |
Definition at line 51 of file unit_recall.cpp.
Referenced by gui2::dialogs::unit_recall::post_show(), and gui2::dialogs::unit_recall::pre_show().
const std::array gui2::dialogs::tag_values |
Definition at line 62 of file edit_pbl.cpp.
Referenced by gui2::dialogs::editor_edit_pbl::create_cfg(), and gui2::dialogs::editor_edit_pbl::pre_show().
const std::array gui2::dialogs::type_values |
Definition at line 45 of file edit_pbl.cpp.
Referenced by gui2::dialogs::editor_edit_pbl::create_cfg(), and gui2::dialogs::editor_edit_pbl::pre_show().