Modify, read and display user preferences. More...
Namespaces | |
editor | |
prv | |
Classes | |
class | acquaintance |
struct | admin_authentication_reset |
Used to reset is_authenticated flag after disconnecting. More... | |
struct | base_manager |
struct | manager |
class | prefs_event_handler |
Enumerations | |
enum | LOBBY_JOINS { SHOW_NONE, SHOW_FRIENDS, SHOW_ALL } |
enum | DIALOG_OPEN_TO { VIEW_DEFAULT, VIEW_FRIENDS } |
Variables | |
const int | INFINITE_AUTO_SAVES = 61 |
prefs_event_handler | event_handler_ |
Modify, read and display user preferences.
This module contain GUI code to display dialogs regarding user preferences, and functions which read and modify the preferences.
Enumerator | |
---|---|
VIEW_DEFAULT | |
VIEW_FRIENDS |
Definition at line 25 of file preferences_display.hpp.
Enumerator | |
---|---|
SHOW_NONE | |
SHOW_FRIENDS | |
SHOW_ALL |
Definition at line 64 of file game_preferences.hpp.
void preferences::_set_color_cursors | ( | bool | value | ) |
Definition at line 961 of file preferences.cpp.
References set().
Referenced by set_color_cursors().
void preferences::_set_fullscreen | ( | bool | ison | ) |
Definition at line 393 of file preferences.cpp.
Referenced by CVideo::set_fullscreen().
void preferences::_set_grid | ( | bool | ison | ) |
void preferences::_set_iconize_list | ( | bool | sort | ) |
Definition at line 37 of file lobby_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::_set_idle_anim | ( | const bool | ison | ) |
Definition at line 443 of file preferences.cpp.
Referenced by set_idle_anim().
Definition at line 453 of file preferences.cpp.
Referenced by set_idle_anim_rate().
Definition at line 386 of file game_preferences.cpp.
References set(), SHOW_ALL, SHOW_FRIENDS, and SHOW_NONE.
Referenced by gui2::tpreferences::initialize_members().
void preferences::_set_maximized | ( | bool | ison | ) |
Definition at line 388 of file preferences.cpp.
Referenced by game_launcher::game_launcher(), preferences::prefs_event_handler::handle_window_event(), and CVideo::set_resolution().
Definition at line 382 of file preferences.cpp.
References set().
Referenced by game_launcher::game_launcher(), preferences::prefs_event_handler::handle_window_event(), and CVideo::set_resolution().
void preferences::_set_sort_list | ( | bool | sort | ) |
Definition at line 27 of file lobby_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::_set_turbo | ( | bool | ison | ) |
Definition at line 407 of file preferences.cpp.
Referenced by set_turbo().
void preferences::add_alias | ( | const std::string & | alias, |
const std::string & | command | ||
) |
Definition at line 982 of file preferences.cpp.
References config::child_or_add().
Referenced by events::console_handler::do_set_alias().
void preferences::add_completed_campaign | ( | const std::string & | campaign_id, |
const std::string & | difficulty_level | ||
) |
Definition at line 343 of file game_preferences.cpp.
Referenced by game_launcher::launch_game().
bool preferences::add_friend | ( | const std::string & | nick, |
const std::string & | notes | ||
) |
Definition at line 281 of file game_preferences.cpp.
References utils::isvalid_wildcard(), and save_acquaintances().
Referenced by gui2::tpreferences::add_friend_list_entry(), gui2::tlobby_player_info::add_to_friends_button_callback(), and events::chat_command_handler::do_friend().
bool preferences::add_ignore | ( | const std::string & | nick, |
const std::string & | reason | ||
) |
Definition at line 288 of file game_preferences.cpp.
References utils::isvalid_wildcard(), and save_acquaintances().
Referenced by gui2::tpreferences::add_friend_list_entry(), gui2::tlobby_player_info::add_to_ignores_button_callback(), and events::chat_command_handler::do_ignore().
std::string preferences::allied_color | ( | ) |
Definition at line 279 of file preferences.cpp.
References game_config::colors::ally_orb_color, and fix_orb_color_name().
Referenced by display::draw_minimap_units(), image::getMinimap(), gui2::tselect_orb_colors::pre_show(), and unit_drawer::redraw_unit().
bool preferences::allow_observers | ( | ) |
Definition at line 596 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::allow_observers_default().
bool preferences::animate_map | ( | ) |
Definition at line 856 of file preferences.cpp.
References get().
Referenced by hotkey::execute_command(), gui2::tpreferences::initialize_members(), and display::invalidate_animations().
bool preferences::animate_water | ( | ) |
Definition at line 861 of file preferences.cpp.
References get().
Referenced by display::draw(), gui2::tpreferences::initialize_members(), and terrain_builder::tile::rebuild_cache().
bool preferences::ask_delete_saves | ( | ) |
Definition at line 936 of file game_preferences.cpp.
References get().
Referenced by gui2::tgame_load::delete_button_callback(), and gui2::get_dont_ask_again().
bool preferences::auto_open_whisper_windows | ( | ) |
Definition at line 52 of file lobby_preferences.cpp.
References get().
Referenced by gui2::tlobby_main::add_whisper_received(), and gui2::tlobby_main::add_whisper_sent().
int preferences::autosavemax | ( | ) |
Definition at line 951 of file game_preferences.cpp.
References get().
Referenced by playsingle_controller::before_human_turn(), play_controller::do_autosave(), gui2::tpreferences::initialize_members(), and savegame::remove_old_auto_saves().
int preferences::bell_volume | ( | ) |
Definition at line 548 of file preferences.cpp.
Referenced by sound::init_sound(), gui2::tpreferences::initialize_members(), and set_bell_volume().
bool preferences::blindfold_replay | ( | ) |
Definition at line 747 of file game_preferences.cpp.
References get().
Referenced by enter_wait_mode(), and mp::lobby::lobby().
std::string preferences::campaign_server | ( | ) |
Definition at line 439 of file game_preferences.cpp.
References get().
Referenced by ad_hoc_addon_fetch_session(), and manage_addons().
int preferences::chat_lines | ( | ) |
Definition at line 1059 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and display_chat_manager::prune_chat_messages().
int preferences::chat_message_aging | ( | ) |
Definition at line 1074 of file game_preferences.cpp.
References get().
Referenced by display_chat_manager::prune_chat_messages().
bool preferences::chat_timestamping | ( | ) |
Definition at line 1051 of file game_preferences.cpp.
References get().
Referenced by get_chat_timestamp(), and gui2::tpreferences::initialize_members().
void preferences::clear | ( | const std::string & | key | ) |
Definition at line 186 of file preferences.cpp.
Referenced by team::shroud_map::copy_from(), team::shroud_map::merge(), set_mp_server_program_name(), and preprocessor_deleter::~preprocessor_deleter().
void preferences::clear_hotkeys | ( | ) |
Definition at line 976 of file preferences.cpp.
References hotkey::reset_default_hotkeys().
bool preferences::confirm_load_save_from_different_version | ( | ) |
Definition at line 1010 of file preferences.cpp.
Referenced by savegame::loadgame::check_version_compatibility().
bool preferences::confirm_no_moves | ( | ) |
Definition at line 1137 of file game_preferences.cpp.
References get().
Referenced by events::menu_handler::end_turn().
std::string preferences::core_id | ( | ) |
Definition at line 289 of file preferences.cpp.
Referenced by do_gameloop(), game_config_manager::load_addons_cfg(), game_config_manager::load_game_config(), and set_core_id().
bool preferences::countdown | ( | ) |
Definition at line 757 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::mp_countdown_default(), and savegame::remove_old_auto_saves().
int preferences::countdown_action_bonus | ( | ) |
Definition at line 800 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::mp_countdown_action_bonus_default().
int preferences::countdown_init_time | ( | ) |
Definition at line 767 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::mp_countdown_init_time_default().
int preferences::countdown_reservoir_time | ( | ) |
Definition at line 778 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::mp_countdown_reservoir_time_default().
int preferences::countdown_turn_bonus | ( | ) |
Definition at line 789 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::mp_countdown_turn_bonus_default().
std::string preferences::custom_command | ( | ) |
Definition at line 1105 of file game_preferences.cpp.
References get().
Referenced by events::menu_handler::custom_command().
bool preferences::delete_saves | ( | ) |
Definition at line 926 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and campaign_controller::play_game().
bool preferences::disable_auto_moves | ( | ) |
Definition at line 1020 of file preferences.cpp.
Referenced by gui2::tpreferences::initialize_members(), playmp_controller::play_human_turn(), and playsingle_controller::play_human_turn().
bool preferences::disable_loadingscreen_animation | ( | ) |
Definition at line 1030 of file preferences.cpp.
Referenced by gui2::tloadscreen::display().
void preferences::disable_preferences_save | ( | ) |
Definition at line 222 of file preferences.cpp.
Referenced by game_launcher::game_launcher().
int preferences::draw_delay | ( | ) |
Definition at line 946 of file preferences.cpp.
Referenced by display::draw_wrap().
bool preferences::ellipses | ( | ) |
Definition at line 468 of file preferences.cpp.
Referenced by events::menu_handler::toggle_ellipses().
void preferences::enable_mouse_scroll | ( | bool | value | ) |
Definition at line 846 of file preferences.cpp.
References set().
Referenced by hotkey::execute_command().
bool preferences::enable_whiteboard_mode_on_start | ( | ) |
Definition at line 571 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and wb::manager::on_init_side().
void preferences::encounter_all_content | ( | const game_board & | gameboard_ | ) |
Definition at line 1181 of file game_preferences.cpp.
References encounter_map_terrain(), encounter_recallable_units(), encounter_recruitable_units(), encounter_start_units(), game_board::map(), game_board::teams(), and game_board::units().
Referenced by play_controller::init().
Definition at line 1168 of file game_preferences.cpp.
References encountered_terrains(), gamemap::get_terrain(), gamemap::h(), gamemap::underlying_union_terrain(), and gamemap::w().
Referenced by encounter_all_content().
Definition at line 1160 of file game_preferences.cpp.
Referenced by encounter_all_content().
Definition at line 1145 of file game_preferences.cpp.
Referenced by encounter_all_content().
Definition at line 1153 of file game_preferences.cpp.
References unit_map::begin(), and unit_map::end().
Referenced by encounter_all_content().
std::set< t_translation::t_terrain > & preferences::encountered_terrains | ( | ) |
Definition at line 1101 of file game_preferences.cpp.
Referenced by game_board::change_terrain(), encounter_map_terrain(), help::generate_terrain_sections(), help::unit_topic_generator::operator()(), help::show_help(), and unit_moves().
std::set< std::string > & preferences::encountered_units | ( | ) |
Definition at line 1097 of file game_preferences.cpp.
Referenced by unit_creator::add_unit(), advance_unit(), dialogs::advance_unit_dialog(), unit::apply_builtin_effect(), help::description_type(), events::console_handler::do_discover(), events::console_handler::do_undiscover(), intf_add_known_unit(), actions::place_recruit(), unit_creator::post_create(), help::show_help(), and gui2::tips::shuffle().
std::string preferences::enemy_color | ( | ) |
Definition at line 299 of file preferences.cpp.
References game_config::colors::enemy_orb_color, and fix_orb_color_name().
Referenced by display::draw_minimap_units(), image::getMinimap(), gui2::tselect_orb_colors::pre_show(), and unit_drawer::redraw_unit().
std::string preferences::era | ( | ) |
Definition at line 841 of file game_preferences.cpp.
References get().
Referenced by ng::connect_engine::connect_engine(), savegame::loadgame::copy_era(), mp::create::create(), help::generate_era_sections(), help::generate_era_topics(), mp::initial_level_config(), mp::wait::join_game(), game_config_manager::load_game_config_for_game(), mp::options::manager::set_era(), and gui2::tcampaign_settings::update_lists().
void preferences::erase | ( | const std::string & | key | ) |
Definition at line 201 of file preferences.cpp.
Referenced by campaignd::server::handle_delete(), preferences::manager::manager(), utils::smart_list< Data >::remove(), utils::smart_list< Data >::remove_if(), utils::smart_list< Data >::resize(), and utils::smart_list< Data >::unique().
bool preferences::fi_friends_in_game | ( | ) |
Definition at line 112 of file lobby_preferences.cpp.
References get().
Referenced by mp::gamebrowser::game_matches_filter(), and mp::lobby::lobby().
bool preferences::fi_invert | ( | ) |
Definition at line 92 of file lobby_preferences.cpp.
References get().
Referenced by mp::lobby::lobby(), and mp::gamebrowser::set_game_items().
std::string preferences::fi_text | ( | ) |
Definition at line 122 of file lobby_preferences.cpp.
References get().
Referenced by mp::gamebrowser::game_matches_filter().
bool preferences::fi_vacant_slots | ( | ) |
Definition at line 102 of file lobby_preferences.cpp.
References get().
Referenced by mp::gamebrowser::game_matches_filter(), and mp::lobby::lobby().
bool preferences::filter_lobby | ( | ) |
Definition at line 82 of file lobby_preferences.cpp.
References get().
Referenced by mp::lobby::lobby(), and mp::gamebrowser::set_game_items().
|
static |
Definition at line 268 of file preferences.cpp.
Referenced by allied_color(), enemy_color(), moved_color(), partial_color(), and unmoved_color().
bool preferences::fog | ( | ) |
Definition at line 681 of file game_preferences.cpp.
References get().
Referenced by editor::context_manager::edit_side_dialog(), ng::configure_engine::fog_game_default(), game_lua_kernel::intf_modify_side(), and gui2::tmp_create_game::update_map_settings().
Definition at line 433 of file preferences.cpp.
References font_scaling().
Referenced by font::cut_word(), font::draw_text_line(), font::ttext::set_font_size(), and font::word_wrap_text().
int preferences::font_scaling | ( | ) |
Definition at line 422 of file preferences.cpp.
Referenced by font_scaled(), and gui2::tpreferences::initialize_members().
bool preferences::fullscreen | ( | ) |
Definition at line 377 of file preferences.cpp.
Referenced by hotkey::execute_command(), gui2::fullscreen(), preferences::prefs_event_handler::handle_window_event(), CVideo::init_window(), and maximized().
std::string preferences::get | ( | const std::string & | key | ) |
Definition at line 209 of file preferences.cpp.
Referenced by allow_observers(), animate_map(), animate_water(), ask_delete_saves(), auto_open_whisper_windows(), preferences::editor::auto_update_transitions(), autosavemax(), blindfold_replay(), campaign_server(), chat_lines(), chat_message_aging(), chat_timestamping(), confirm_no_moves(), countdown(), countdown_action_bonus(), countdown_init_time(), countdown_reservoir_time(), countdown_turn_bonus(), custom_command(), preferences::editor::default_dir(), delete_saves(), preferences::editor::draw_hex_coordinates(), preferences::editor::draw_terrain_codes(), enable_whiteboard_mode_on_start(), era(), fi_friends_in_game(), fi_invert(), fi_text(), fi_vacant_slots(), filter_lobby(), fog(), get_mp_server_program_name(), get_ping_timeout(), gui2::tadvanced_graphics_options::get_scale_pref(), green_confirm(), controller_base::handle_scroll(), hide_whiteboard(), iconize_list(), interrupt_when_ally_sighted(), level(), level_type(), lobby_joins(), login(), preferences::manager::manager(), max_wml_menu_items(), minimap_draw_terrain(), minimap_draw_units(), minimap_draw_villages(), minimap_movement_coding(), minimap_terrain_coding(), mp_server_warning_disabled(), network_host(), password(), playerlist_group_players(), playerlist_sort_name(), playerlist_sort_relation(), random_faction_mode(), random_start_time(), registered_users_only(), remember_password(), save_compression_format(), save_replays(), set_preference_display_settings(), gui2::setup_pref_toggle_button(), show_ai_moves(), show_all_units_in_help(), show_combat(), show_floating_labels(), show_side_colors(), show_standing_animations(), shroud(), shuffle_sides(), skip_mp_replay(), sort_list(), theme(), turn_dialog(), turns(), image::update_from_preferences(), use_map_settings(), village_gold(), village_support(), whisper_friends_only(), wrap_login(), wrap_password(), xp_modifier(), and yellow_confirm().
std::string preferences::get | ( | const std::string & | key, |
const std::string & | def | ||
) |
Definition at line 213 of file preferences.cpp.
bool preferences::get | ( | const std::string & | key, |
bool | def | ||
) |
Definition at line 217 of file preferences.cpp.
const std::map< std::string, acquaintance > & preferences::get_acquaintances | ( | ) |
Definition at line 261 of file game_preferences.cpp.
References load_acquaintances().
Referenced by gui2::tpreferences::edit_friend_list_entry(), and gui2::tpreferences::setup_friends_list().
std::map< std::string, std::string > preferences::get_acquaintances_nice | ( | const std::string & | filter | ) |
Definition at line 267 of file game_preferences.cpp.
References i, and load_acquaintances().
Referenced by play_controller::tab().
const config & preferences::get_alias | ( | ) |
Definition at line 989 of file preferences.cpp.
References get_child().
Referenced by events::console_handler::init_map().
std::string preferences::get_chat_timestamp | ( | const time_t & | t | ) |
Definition at line 1039 of file game_preferences.cpp.
References _(), chat_timestamping(), lg::get_timestamp(), and use_twelve_hour_clock_format().
Referenced by display_chat_manager::add_chat_message(), gui2::tlobby_main::append_to_chatbox(), mp::chat::format_message(), and gui2::tchat_log::model::stream_log().
const config & preferences::get_child | ( | const std::string & | key | ) |
Definition at line 196 of file preferences.cpp.
References config::child().
Referenced by get_alias(), preferences::manager::manager(), vconfig::all_children_iterator::operator*(), vconfig::all_children_iterator::operator->(), and options().
std::vector< std::string > * preferences::get_history | ( | const std::string & | id | ) |
Returns a pointer to the history vector associated with given id making a new one if it doesn't exist.
Definition at line 1119 of file game_preferences.cpp.
Referenced by gui2::ttext_history::get_history().
std::string preferences::get_mp_server_program_name | ( | ) |
Definition at line 666 of file game_preferences.cpp.
References get().
Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().
unsigned int preferences::get_ping_timeout | ( | ) |
Definition at line 434 of file game_preferences.cpp.
References get().
Referenced by open_connection().
config * preferences::get_prefs | ( | ) |
Definition at line 226 of file preferences.cpp.
Referenced by load_acquaintances(), save_acquaintances(), and server_list().
|
static |
Definition at line 477 of file game_preferences.cpp.
References login(), and unicode_cast().
Referenced by login().
bool preferences::green_confirm | ( | ) |
Definition at line 1123 of file game_preferences.cpp.
References get().
Referenced by events::menu_handler::end_turn().
bool preferences::grid | ( | ) |
Definition at line 478 of file preferences.cpp.
Referenced by gui2::tlobby_main::active_window_changed(), gui2::tlobby_main::adjust_game_row_contents(), gui2::tlobby_main::append_to_chatbox(), BOOST_AUTO_TEST_CASE(), gui2::tbuilder_grid::build(), gui2::implementation::tbuilder_listbox::build(), editor::editor_controller::get_action_state(), gui2::tlobby_main::increment_waiting_messages(), gui2::tlobby_main::increment_waiting_whsipers(), gui2::tpreferences::initialize_members(), gui2::tlabel_settings::pre_show(), gui2::tcore_selection::pre_show(), gui2::tcampaign_difficulty::pre_show(), gui2::tcampaign_selection::pre_show(), gui2::tgrid::set_active(), display::set_grid(), gui2::tgenerator< minimum_selection, maximum_selection, placement, select_action >::set_item_selected(), set_preference_display_settings(), gui2::tgrid::swap_child(), test_grid(), events::menu_handler::toggle_grid(), editor::editor_controller::toggle_grid(), gui2::tlobby_main::update_gamelist(), and gui2::tlobby_main::update_gamelist_diff().
bool preferences::have_setting | ( | const std::string & | key | ) |
Definition at line 205 of file preferences.cpp.
Referenced by wrap_login(), and wrap_password().
bool preferences::hide_whiteboard | ( | ) |
Definition at line 581 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members().
bool preferences::iconize_list | ( | ) |
Definition at line 32 of file lobby_preferences.cpp.
References get().
Referenced by mp::ui::gamelist_updated(), and gui2::tpreferences::initialize_members().
bool preferences::idle_anim | ( | ) |
Definition at line 438 of file preferences.cpp.
Referenced by gui2::tpreferences::initialize_members().
int preferences::idle_anim_rate | ( | ) |
Definition at line 448 of file preferences.cpp.
Referenced by display::display(), and gui2::tpreferences::initialize_members().
bool preferences::interrupt_when_ally_sighted | ( | ) |
Definition at line 946 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and actions::move_unit_and_record().
bool preferences::is_authenticated | ( | ) |
Definition at line 217 of file game_preferences.cpp.
Referenced by game_info::can_observe(), events::chat_command_handler::is_enabled(), events::console_handler::is_enabled(), gui2::tlobby_player_info::pre_show(), gui2::tmp_cmd_wrapper::pre_show(), and mp::gamebrowser::selection_in_observable_state().
bool preferences::is_campaign_completed | ( | const std::string & | campaign_id | ) |
Definition at line 347 of file game_preferences.cpp.
Referenced by game_launcher::mark_completed_campaigns(), ng::campaign::mark_if_completed(), and gui2::tcampaign_difficulty::pre_show().
bool preferences::is_campaign_completed | ( | const std::string & | campaign_id, |
const std::string & | difficulty_level | ||
) |
Definition at line 351 of file game_preferences.cpp.
bool preferences::is_friend | ( | const std::string & | nick | ) |
Definition at line 317 of file game_preferences.cpp.
References preferences::acquaintance::get_status(), and load_acquaintances().
Referenced by display_chat_manager::add_chat_message(), gui2::tlobby_main::add_chat_room_message_received(), gui2::tlobby_main::add_whisper_received(), mp::gamebrowser::game_matches_filter(), mp::ui::gamelist_updated(), parse_should_show_lobby_join(), mp::ui::process_message(), and user_info::update_relation().
bool preferences::is_ignored | ( | const std::string & | nick | ) |
Definition at line 330 of file game_preferences.cpp.
References preferences::acquaintance::get_status(), and load_acquaintances().
Referenced by replay::add_chat_log_entry(), display_chat_manager::add_chat_message(), mp::ui::gamelist_updated(), game_state::init(), mp::ui::process_message(), gui2::tlobby_main::process_message(), and user_info::update_relation().
int preferences::joystick_cursor_deadzone | ( | ) |
Definition at line 725 of file preferences.cpp.
Referenced by joystick_manager::update_highlighted_hex().
int preferences::joystick_cursor_threshold | ( | ) |
Definition at line 743 of file preferences.cpp.
Referenced by joystick_manager::update_highlighted_hex().
int preferences::joystick_cursor_xaxis_num | ( | ) |
Definition at line 779 of file preferences.cpp.
Referenced by joystick_manager::get_angle(), joystick_manager::get_cursor_polar_coordinates(), and joystick_manager::update_highlighted_hex().
int preferences::joystick_cursor_yaxis_num | ( | ) |
Definition at line 791 of file preferences.cpp.
Referenced by joystick_manager::get_angle(), joystick_manager::get_cursor_polar_coordinates(), and joystick_manager::update_highlighted_hex().
int preferences::joystick_mouse_deadzone | ( | ) |
Definition at line 689 of file preferences.cpp.
Referenced by joystick_manager::get_mouse_axis_pair().
int preferences::joystick_mouse_xaxis_num | ( | ) |
Definition at line 701 of file preferences.cpp.
Referenced by joystick_manager::get_mouse_axis_pair().
int preferences::joystick_mouse_yaxis_num | ( | ) |
Definition at line 713 of file preferences.cpp.
Referenced by joystick_manager::get_mouse_axis_pair().
int preferences::joystick_num_cursor_xaxis | ( | ) |
Definition at line 773 of file preferences.cpp.
Referenced by joystick_manager::get_angle(), joystick_manager::get_cursor_polar_coordinates(), and joystick_manager::update_highlighted_hex().
int preferences::joystick_num_cursor_yaxis | ( | ) |
Definition at line 785 of file preferences.cpp.
Referenced by joystick_manager::get_angle(), joystick_manager::get_cursor_polar_coordinates(), and joystick_manager::update_highlighted_hex().
int preferences::joystick_num_mouse_xaxis | ( | ) |
Definition at line 695 of file preferences.cpp.
Referenced by joystick_manager::get_mouse_axis_pair().
int preferences::joystick_num_mouse_yaxis | ( | ) |
Definition at line 707 of file preferences.cpp.
Referenced by joystick_manager::get_mouse_axis_pair().
int preferences::joystick_num_scroll_xaxis | ( | ) |
Definition at line 749 of file preferences.cpp.
Referenced by joystick_manager::get_scroll_axis_pair().
int preferences::joystick_num_scroll_yaxis | ( | ) |
Definition at line 761 of file preferences.cpp.
Referenced by joystick_manager::get_scroll_axis_pair().
int preferences::joystick_num_thrusta_axis | ( | ) |
Definition at line 797 of file preferences.cpp.
Referenced by joystick_manager::get_thrusta_axis().
int preferences::joystick_num_thrustb_axis | ( | ) |
Definition at line 809 of file preferences.cpp.
Referenced by joystick_manager::get_thrustb_axis().
int preferences::joystick_scroll_deadzone | ( | ) |
Definition at line 719 of file preferences.cpp.
Referenced by joystick_manager::get_scroll_axis_pair().
int preferences::joystick_scroll_xaxis_num | ( | ) |
Definition at line 755 of file preferences.cpp.
Referenced by joystick_manager::get_scroll_axis_pair().
int preferences::joystick_scroll_yaxis_num | ( | ) |
Definition at line 767 of file preferences.cpp.
Referenced by joystick_manager::get_scroll_axis_pair().
bool preferences::joystick_support_enabled | ( | ) |
Definition at line 684 of file preferences.cpp.
Referenced by do_gameloop(), joystick_manager::get_scroll_axis_pair(), joystick_manager::get_thrusta_axis(), joystick_manager::get_thrustb_axis(), joystick_manager::init(), and game_launcher::init_joystick().
int preferences::joystick_thrusta_axis_num | ( | ) |
Definition at line 803 of file preferences.cpp.
Referenced by joystick_manager::get_thrusta_axis().
int preferences::joystick_thrusta_deadzone | ( | ) |
Definition at line 731 of file preferences.cpp.
Referenced by joystick_manager::get_thrusta_axis().
int preferences::joystick_thrustb_axis_num | ( | ) |
Definition at line 815 of file preferences.cpp.
Referenced by joystick_manager::get_thrustb_axis().
int preferences::joystick_thrustb_deadzone | ( | ) |
Definition at line 737 of file preferences.cpp.
Referenced by joystick_manager::get_thrustb_axis().
std::string preferences::language | ( | ) |
Definition at line 458 of file preferences.cpp.
Referenced by get_locale().
std::string preferences::level | ( | ) |
Definition at line 851 of file game_preferences.cpp.
References get().
Referenced by mp::create::create().
int preferences::level_type | ( | ) |
Definition at line 861 of file game_preferences.cpp.
References get().
Referenced by mp::create::create().
|
static |
Definition at line 239 of file game_preferences.cpp.
References config::child_range(), preferences::acquaintance::get_nick(), and get_prefs().
Referenced by get_acquaintances(), get_acquaintances_nice(), is_friend(), and is_ignored().
void preferences::load_hotkeys | ( | ) |
Definition at line 966 of file preferences.cpp.
References hotkey::load_hotkeys().
Referenced by do_gameloop().
int preferences::lobby_joins | ( | ) |
Definition at line 371 of file game_preferences.cpp.
References get(), SHOW_ALL, SHOW_FRIENDS, and SHOW_NONE.
Referenced by gui2::tpreferences::initialize_members(), and parse_should_show_lobby_join().
std::string preferences::login | ( | ) |
Definition at line 496 of file game_preferences.cpp.
References _(), get(), get_system_username(), and wrap_login().
Referenced by display_chat_manager::add_chat_message(), events::menu_handler::add_chat_message(), gui2::tlobby_main::add_chat_room_message_received(), events::chat_handler::add_chat_room_message_sent(), gui2::tlobby_main::add_chat_room_message_sent(), gui2::tlobby_main::add_whisper_sent(), gui2::tlobby_main::chat_input_keypress_callback(), gui2::tlobby_main::close_window(), ng::connect_engine::connect_engine(), enter_connect_mode(), ng::configure_engine::game_name_default(), mp::ui::gamelist_updated(), get_system_username(), mp::ui::handle_key_event(), mp::wait::join_game(), ng::side_engine::new_config(), open_connection(), gui2::tmp_method_selection::pre_show(), ng::create_engine::prepare_for_saved_game(), mp::ui::process_message(), mp::ui::process_network_data(), gui2::tlobby_main::process_room_join(), ng::side_engine::ready_for_start(), events::menu_handler::request_control_change(), events::menu_handler::send_chat_message(), mp::ui::send_chat_message(), gui2::tlobby_main::send_chat_message(), events::chat_handler::send_chat_room_message(), events::chat_handler::send_whisper(), gui2::side_controller::show_nicks_list(), play_controller::tab(), gui2::tmp_login::tmp_login(), and user_info::update_relation().
int preferences::max_wml_menu_items | ( | ) |
Definition at line 1084 of file game_preferences.cpp.
References get().
Referenced by wmi_pager::get_items().
bool preferences::maximized | ( | ) |
Definition at line 372 of file preferences.cpp.
References fullscreen().
Referenced by CVideo::init_window(), and CVideo::set_fullscreen().
bool preferences::message_bell | ( | ) |
Definition at line 626 of file preferences.cpp.
Referenced by do_replay_handle(), and turn_info::process_network_data().
bool preferences::message_private | ( | ) |
Definition at line 997 of file game_preferences.cpp.
Referenced by events::menu_handler::speak().
bool preferences::middle_click_scrolls | ( | ) |
Definition at line 836 of file preferences.cpp.
Referenced by controller_base::handle_scroll(), and events::mouse_handler_base::mouse_press().
int preferences::min_allowed_height | ( | ) |
Definition at line 354 of file preferences.cpp.
Referenced by CVideo::get_available_resolutions(), CVideo::init_window(), and resolution().
int preferences::min_allowed_width | ( | ) |
Definition at line 349 of file preferences.cpp.
Referenced by CVideo::get_available_resolutions(), CVideo::init_window(), and resolution().
bool preferences::minimap_draw_terrain | ( | ) |
Definition at line 906 of file preferences.cpp.
References get().
Referenced by editor::editor_controller::get_action_state(), play_controller::hotkey_handler::get_action_state(), image::getMinimap(), and toggle_minimap_draw_terrain().
bool preferences::minimap_draw_units | ( | ) |
Definition at line 886 of file preferences.cpp.
References get().
Referenced by display::draw_minimap_units(), editor::editor_controller::get_action_state(), play_controller::hotkey_handler::get_action_state(), and toggle_minimap_draw_units().
bool preferences::minimap_draw_villages | ( | ) |
Definition at line 896 of file preferences.cpp.
References get().
Referenced by editor::editor_controller::get_action_state(), play_controller::hotkey_handler::get_action_state(), image::getMinimap(), and toggle_minimap_draw_villages().
bool preferences::minimap_movement_coding | ( | ) |
Definition at line 866 of file preferences.cpp.
References get().
Referenced by display::draw_minimap_units(), editor::editor_controller::get_action_state(), play_controller::hotkey_handler::get_action_state(), image::getMinimap(), and toggle_minimap_movement_coding().
bool preferences::minimap_terrain_coding | ( | ) |
Definition at line 876 of file preferences.cpp.
References get().
Referenced by editor::editor_controller::get_action_state(), play_controller::hotkey_handler::get_action_state(), image::getMinimap(), and toggle_minimap_terrain_coding().
const std::vector< std::string > & preferences::modifications | ( | bool | mp | ) |
Definition at line 871 of file game_preferences.cpp.
Referenced by savegame::convert_old_saves_1_13_1(), ng::create_engine::create_engine(), ng::depcheck::MAKE_ENUM(), and mp::options::manager::set_modifications().
bool preferences::mouse_scroll_enabled | ( | ) |
Definition at line 841 of file preferences.cpp.
Referenced by hotkey::execute_command(), and controller_base::handle_scroll().
int preferences::mouse_scroll_threshold | ( | ) |
Gets the threshold for when to scroll.
This scrolling happens when the mouse is in the application and near the border.
Definition at line 851 of file preferences.cpp.
Referenced by controller_base::handle_scroll(), and preferences::base_manager::~base_manager().
std::string preferences::moved_color | ( | ) |
Definition at line 309 of file preferences.cpp.
References fix_orb_color_name(), and game_config::colors::moved_orb_color.
Referenced by display::draw_minimap_units(), gui2::tselect_orb_colors::pre_show(), and unit_drawer::redraw_unit().
int preferences::mp_server_warning_disabled | ( | ) |
Definition at line 644 of file game_preferences.cpp.
References get().
Referenced by gui2::get_do_not_show_again(), and game_launcher::play_multiplayer().
bool preferences::music_on | ( | ) |
Definition at line 654 of file preferences.cpp.
Referenced by hotkey::execute_command(), gui2::tpreferences::initialize_members(), sound::play_new_music(), sound::music_thinker::process(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), and set_UI_sound().
int preferences::music_volume | ( | ) |
Definition at line 518 of file preferences.cpp.
Referenced by sound::init_sound(), gui2::tpreferences::initialize_members(), preferences::manager::manager(), set_music_volume(), and game_events::WML_HANDLER_FUNCTION().
std::string preferences::network_host | ( | ) |
Definition at line 419 of file game_preferences.cpp.
References get(), and server_list().
Referenced by game_launcher::game_launcher(), and open_connection().
bool preferences::new_lobby | ( | ) |
Definition at line 397 of file game_preferences.cpp.
Referenced by enter_lobby_mode().
const config & preferences::options | ( | ) |
Definition at line 711 of file game_preferences.cpp.
References get_child().
Referenced by dialogs::advance_unit_dialog(), dialogs::animate_unit_advancement(), checkoption(), unit_animation_component::choose_animation(), commandline_options::commandline_options(), db_getinfo(), events::console_handler::do_choose_level(), ai::ai_default_rca::combat_phase::evaluate(), saved_game::expand_mp_options(), default_map_generator_job::generate_name(), ai::helper_advance_unit(), mp::options::manager::init_info(), main(), ng::configure_engine::options_default(), wb::manager::options_dlg(), gui2::twml_message_::pre_show(), turn_info::process_network_data(), dialogs::recall_dialog(), gui2::set_resolution_list(), and lua_gui2::show_message_dialog().
void preferences::parse_admin_authentication | ( | const std::string & | sender, |
const std::string & | message | ||
) |
Definition at line 221 of file game_preferences.cpp.
Referenced by display_chat_manager::add_chat_message(), mp::ui::process_message(), and gui2::tlobby_main::process_message().
bool preferences::parse_should_show_lobby_join | ( | const std::string & | sender, |
const std::string & | message | ||
) |
Definition at line 356 of file game_preferences.cpp.
References is_friend(), lobby_joins(), pos, SHOW_ALL, and SHOW_NONE.
Referenced by replay::add_chat_log_entry(), display_chat_manager::add_chat_message(), and mp::ui::process_message().
std::string preferences::partial_color | ( | ) |
Definition at line 329 of file preferences.cpp.
References fix_orb_color_name(), and game_config::colors::partial_orb_color.
Referenced by display::draw_minimap_units(), gui2::tselect_orb_colors::pre_show(), and unit_drawer::redraw_unit().
std::string preferences::password | ( | ) |
Definition at line 527 of file game_preferences.cpp.
References get(), preferences::prv::password, remember_password(), and wrap_password().
Referenced by open_connection(), set_password(), and gui2::tmp_login::tmp_login().
bool preferences::playerlist_group_players | ( | ) |
Definition at line 77 of file lobby_preferences.cpp.
References get().
Referenced by gui2::tlobby_main::update_playerlist().
bool preferences::playerlist_sort_name | ( | ) |
Definition at line 67 of file lobby_preferences.cpp.
References get().
Referenced by gui2::tlobby_main::pre_show().
bool preferences::playerlist_sort_relation | ( | ) |
Definition at line 57 of file lobby_preferences.cpp.
References get().
Referenced by gui2::tlobby_main::pre_show().
std::string preferences::random_faction_mode | ( | ) |
Definition at line 626 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::random_faction_mode_default(), and mp_game_settings::to_config().
bool preferences::random_start_time | ( | ) |
Definition at line 671 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::random_start_time_default(), and gui2::tmp_create_game::update_map_settings().
bool preferences::registered_users_only | ( | ) |
Definition at line 606 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::registered_users_only_default().
bool preferences::remember_password | ( | ) |
Definition at line 550 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), password(), set_password(), and gui2::tmp_login::tmp_login().
bool preferences::remove_acquaintance | ( | const std::string & | nick | ) |
Definition at line 295 of file game_preferences.cpp.
References i, pos, and save_acquaintances().
Referenced by events::chat_command_handler::do_remove(), gui2::tpreferences::remove_friend_list_entry(), and gui2::tlobby_player_info::remove_from_list_button_callback().
Definition at line 359 of file preferences.cpp.
References min_allowed_height(), and min_allowed_width().
Referenced by expand_partialresolution(), get_resolution(), CVideo::init_window(), gui2::tcontrol_definition::load_resolutions(), and CVideo::set_fullscreen().
unsigned int preferences::sample_rate | ( | ) |
Definition at line 994 of file preferences.cpp.
Referenced by sound::init_sound(), and save_sample_rate().
|
static |
Definition at line 248 of file game_preferences.cpp.
References config::add_child(), config::clear_children(), get_prefs(), and i.
Referenced by add_friend(), add_ignore(), and remove_acquaintance().
compression::format preferences::save_compression_format | ( | ) |
Definition at line 1018 of file game_preferences.cpp.
References compression::BZIP2, get(), compression::GZIP, and compression::NONE.
Referenced by playsingle_controller::before_human_turn(), play_controller::do_autosave(), play_controller::do_consolesave(), play_controller::hotkey_handler::expand_autosaves(), campaign_controller::play_game(), playsingle_controller::play_scenario(), play_controller::save_game(), play_controller::save_game_auto(), play_controller::save_replay(), play_controller::save_replay_auto(), and savegame::save_index_class::write_save_index().
void preferences::save_hotkeys | ( | ) |
Definition at line 971 of file preferences.cpp.
References hotkey::save_hotkeys().
bool preferences::save_replays | ( | ) |
Definition at line 916 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and campaign_controller::play_game().
Definition at line 999 of file preferences.cpp.
References int(), sound::reset_sound(), and sample_rate().
void preferences::save_sound_buffer_size | ( | const size_t | size | ) |
Definition at line 501 of file preferences.cpp.
References sound::reset_sound(), and set().
void preferences::save_turbo_speed | ( | const double | speed | ) |
Definition at line 417 of file preferences.cpp.
Referenced by set_turbo_speed().
int preferences::scroll_speed | ( | ) |
Definition at line 822 of file preferences.cpp.
Referenced by controller_base::handle_scroll(), gui2::tpreferences::initialize_members(), events::mouse_handler_base::mouse_wheel(), display::scroll_to_xy(), and about::show_about().
bool preferences::scroll_to_action | ( | ) |
Definition at line 339 of file preferences.cpp.
Referenced by display::scroll_to_xy().
const std::vector< game_config::server_info > & preferences::server_list | ( | ) |
Definition at line 402 of file game_preferences.cpp.
References _(), game_config::server_info::address, config::child_range(), get_prefs(), game_config::server_info::name, game_config::server_list, and VALIDATE.
Referenced by network_host(), open_connection(), and game_launcher::play_multiplayer().
void preferences::set | ( | const std::string & | key, |
bool | value | ||
) |
Definition at line 166 of file preferences.cpp.
Referenced by _set_color_cursors(), _set_grid(), _set_iconize_list(), _set_lobby_joins(), _set_resolution(), _set_sort_list(), enable_mouse_scroll(), gui2::tadvanced_graphics_options::get_scale_pref(), gui2::tpreferences::initialize_members(), save_sound_buffer_size(), set_allow_observers(), set_animate_map(), set_animate_water(), set_ask_delete_saves(), preferences::editor::set_auto_update_transitions(), set_autosavemax(), set_blindfold_replay(), set_campaign_server(), set_chat_lines(), set_chat_message_aging(), set_chat_timestamping(), set_countdown(), set_countdown_action_bonus(), set_countdown_init_time(), set_countdown_reservoir_time(), set_countdown_turn_bonus(), set_custom_command(), set_delete_saves(), set_disable_auto_moves(), set_disable_loadingscreen_animation(), preferences::editor::set_draw_hex_coordinates(), preferences::editor::set_draw_terrain_codes(), set_ellipses(), set_enable_whiteboard_mode_on_start(), set_era(), set_fi_friends_in_game(), set_fi_invert(), set_fi_text(), set_fi_vacant_slots(), set_filter_lobby(), set_fog(), set_hide_whiteboard(), set_interrupt_when_ally_sighted(), set_language(), set_level(), set_level_type(), set_login(), set_max_wml_menu_items(), set_modifications(), set_mp_server_program_name(), set_mp_server_warning_disabled(), set_music(), set_network_host(), set_password(), set_playerlist_sort_name(), set_playerlist_sort_relation(), gui2::set_pref_and_button(), set_random_faction_mode(), set_random_start_time(), set_registered_users_only(), set_remember_password(), set_save_replays(), set_show_ai_moves(), set_show_all_units_in_help(), set_show_floating_labels(), set_show_haloes(), set_show_side_colors(), set_show_standing_animations(), set_shroud(), set_shuffle_sides(), set_skip_mp_replay(), set_sound(), set_theme(), set_turn_bell(), set_turn_dialog(), set_turns(), set_UI_sound(), set_use_map_settings(), set_village_gold(), set_village_support(), set_whisper_friends_only(), set_wrap_login(), set_wrap_password(), set_xp_modifier(), gui2::setup_item(), gui2::setup_pref_toggle_button(), toggle_minimap_draw_terrain(), toggle_minimap_draw_units(), toggle_minimap_draw_villages(), toggle_minimap_movement_coding(), toggle_minimap_terrain_coding(), gui2::tadvanced_graphics_options::update_scale_case(), and preferences::manager::~manager().
void preferences::set | ( | const std::string & | key, |
int | value | ||
) |
Definition at line 171 of file preferences.cpp.
void preferences::set | ( | const std::string & | key, |
char const * | value | ||
) |
Definition at line 176 of file preferences.cpp.
void preferences::set | ( | const std::string & | key, |
const std::string & | value | ||
) |
Definition at line 181 of file preferences.cpp.
void preferences::set_allied_color | ( | const std::string & | color_id | ) |
Definition at line 285 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_allow_observers | ( | bool | value | ) |
Definition at line 601 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_animate_map | ( | bool | value | ) |
Definition at line 916 of file preferences.cpp.
References set().
Referenced by gui2::tpreferences::animate_map_toggle_callback(), and hotkey::execute_command().
void preferences::set_animate_water | ( | bool | value | ) |
Definition at line 921 of file preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_ask_delete_saves | ( | bool | value | ) |
Definition at line 931 of file game_preferences.cpp.
References set().
Referenced by gui2::set_dont_ask_again().
void preferences::set_auto_open_whisper_windows | ( | bool | v | ) |
Definition at line 956 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::max_autosaves_slider_callback().
Definition at line 553 of file preferences.cpp.
References bell_volume(), and sound::set_bell_volume().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_blindfold_replay | ( | bool | value | ) |
Definition at line 752 of file game_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_campaign_server | ( | const std::string & | host | ) |
Definition at line 448 of file game_preferences.cpp.
References set().
Definition at line 1064 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
Definition at line 1069 of file game_preferences.cpp.
References set().
void preferences::set_chat_timestamping | ( | bool | value | ) |
Definition at line 1055 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_child | ( | const std::string & | key, |
const config & | val | ||
) |
Definition at line 191 of file preferences.cpp.
Referenced by set_options(), and preferences::manager::~manager().
void preferences::set_color_cursors | ( | bool | value | ) |
Definition at line 95 of file preferences_display.cpp.
References _set_color_cursors(), and cursor::set().
Referenced by set_preference_display_settings().
void preferences::set_core_id | ( | const std::string & | core_id | ) |
Definition at line 295 of file preferences.cpp.
References core_id().
Referenced by do_gameloop(), game_launcher::game_launcher(), and game_config_manager::load_game_config().
void preferences::set_countdown | ( | bool | value | ) |
Definition at line 762 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 806 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 773 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 784 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 795 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_custom_command | ( | const std::string & | command | ) |
Definition at line 1109 of file game_preferences.cpp.
References set().
Referenced by events::console_handler::do_custom().
void preferences::set_delete_saves | ( | bool | value | ) |
Definition at line 921 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_disable_auto_moves | ( | bool | value | ) |
Definition at line 1025 of file preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_disable_loadingscreen_animation | ( | bool | value | ) |
Definition at line 1035 of file preferences.cpp.
References set().
Definition at line 951 of file preferences.cpp.
Referenced by game_launcher::game_launcher().
void preferences::set_ellipses | ( | bool | ison | ) |
Definition at line 473 of file preferences.cpp.
References set().
Referenced by events::menu_handler::toggle_ellipses().
void preferences::set_enable_whiteboard_mode_on_start | ( | bool | value | ) |
Definition at line 576 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_enemy_color | ( | const std::string & | color_id | ) |
Definition at line 305 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_era | ( | const std::string & | value | ) |
Definition at line 846 of file game_preferences.cpp.
References set().
Referenced by mp::create::~create().
void preferences::set_fi_friends_in_game | ( | bool | value | ) |
Definition at line 117 of file lobby_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_fi_invert | ( | bool | value | ) |
Definition at line 97 of file lobby_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_fi_text | ( | const std::string & | search_string | ) |
Definition at line 127 of file lobby_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_fi_vacant_slots | ( | bool | value | ) |
Definition at line 107 of file lobby_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_filter_lobby | ( | bool | value | ) |
Definition at line 87 of file lobby_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl().
void preferences::set_fog | ( | bool | value | ) |
Definition at line 686 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 428 of file preferences.cpp.
Referenced by gui2::tpreferences::post_show().
void preferences::set_grid | ( | bool | ison | ) |
Definition at line 86 of file preferences_display.cpp.
References _set_grid(), display::get_singleton(), and display::set_grid().
Referenced by gui2::tpreferences::initialize_members(), set_preference_display_settings(), events::menu_handler::toggle_grid(), and editor::editor_controller::toggle_grid().
void preferences::set_hide_whiteboard | ( | bool | value | ) |
Definition at line 586 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_idle_anim | ( | bool | ison | ) |
Definition at line 102 of file preferences_display.cpp.
References _set_idle_anim(), display::get_singleton(), and display::set_idle_anim().
Referenced by gui2::tpreferences::initialize_members().
Definition at line 110 of file preferences_display.cpp.
References _set_idle_anim_rate(), display::get_singleton(), and display::set_idle_anim_rate().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_interrupt_when_ally_sighted | ( | bool | value | ) |
Definition at line 941 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_language | ( | const std::string & | s | ) |
Definition at line 463 of file preferences.cpp.
References set().
Referenced by gui2::tlanguage_selection::post_show().
void preferences::set_level | ( | const std::string & | value | ) |
Definition at line 856 of file game_preferences.cpp.
References set().
Referenced by game_launcher::game_launcher(), wesnoth_global_fixture::wesnoth_global_fixture(), and mp::create::~create().
Definition at line 866 of file game_preferences.cpp.
References set().
Referenced by mp::create::~create().
void preferences::set_login | ( | const std::string & | username | ) |
Definition at line 517 of file game_preferences.cpp.
References set(), and set_wrap_login().
Referenced by gui2::tmp_method_selection::post_show(), and gui2::tmp_login::tmp_login().
Definition at line 1079 of file game_preferences.cpp.
References set().
void preferences::set_message_private | ( | bool | value | ) |
Definition at line 1002 of file game_preferences.cpp.
Referenced by gui::floating_textbox::close(), mp::lobby::process_event_impl(), events::menu_handler::shout(), mp::start_local_game(), mp::start_local_game_commandline(), and events::menu_handler::whisper().
void preferences::set_modifications | ( | const std::vector< std::string > & | value, |
bool | mp | ||
) |
Definition at line 879 of file game_preferences.cpp.
References utils::join(), and set().
Referenced by gui2::tcampaign_selection::post_show(), and mp::create::~create().
void preferences::set_moved_color | ( | const std::string & | color_id | ) |
Definition at line 315 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_mp_server_program_name | ( | const std::string & | path | ) |
Definition at line 654 of file game_preferences.cpp.
References clear(), and set().
Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().
Definition at line 649 of file game_preferences.cpp.
References set().
Referenced by gui2::set_do_not_show_again().
bool preferences::set_music | ( | bool | ison | ) |
Definition at line 659 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), sound::play_music(), set(), sound_on(), sound::stop_music(), turn_bell(), and UI_sound_on().
Referenced by hotkey::execute_command(), and gui2::tpreferences::initialize_members().
Definition at line 523 of file preferences.cpp.
References music_volume(), and sound::set_music_volume().
Referenced by gui2::tpreferences::initialize_members(), and preferences::manager::manager().
void preferences::set_network_host | ( | const std::string & | host | ) |
Definition at line 429 of file game_preferences.cpp.
References set().
Referenced by open_connection().
Definition at line 731 of file game_preferences.cpp.
References set_child().
Referenced by mp::configure::~configure().
void preferences::set_partial_color | ( | const std::string & | color_id | ) |
Definition at line 335 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_password | ( | const std::string & | password | ) |
Definition at line 541 of file game_preferences.cpp.
References preferences::prv::password, password(), remember_password(), set(), and set_wrap_password().
Referenced by gui2::tmp_login::post_show().
void preferences::set_playerlist_sort_name | ( | bool | v | ) |
Definition at line 72 of file lobby_preferences.cpp.
References set().
Referenced by gui2::tlobby_main::player_filter_callback().
void preferences::set_playerlist_sort_relation | ( | bool | v | ) |
Definition at line 62 of file lobby_preferences.cpp.
References set().
Referenced by gui2::tlobby_main::player_filter_callback().
void preferences::set_preference_display_settings | ( | ) |
Definition at line 43 of file preferences_display.cpp.
References get(), grid(), set_color_cursors(), set_grid(), set_turbo(), set_turbo_speed(), turbo(), and turbo_speed().
Referenced by editor::editor_controller::init_gui(), and play_controller::init_managers().
void preferences::set_random_faction_mode | ( | const std::string & | value | ) |
Definition at line 630 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_random_start_time | ( | bool | value | ) |
Definition at line 676 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_registered_users_only | ( | bool | value | ) |
Definition at line 611 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_remember_password | ( | bool | remember | ) |
Definition at line 555 of file game_preferences.cpp.
References preferences::prv::password, and set().
Referenced by gui2::tpreferences::initialize_members(), and gui2::tmp_login::tmp_login().
void preferences::set_save_replays | ( | bool | value | ) |
Definition at line 911 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
Definition at line 830 of file preferences.cpp.
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_scroll_to_action | ( | bool | ison | ) |
Definition at line 344 of file preferences.cpp.
void preferences::set_show_ai_moves | ( | bool | value | ) |
Definition at line 896 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_show_all_units_in_help | ( | bool | value | ) |
Definition at line 1093 of file game_preferences.cpp.
References set().
void preferences::set_show_allied_orb | ( | bool | show_orb | ) |
Definition at line 235 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_show_enemy_orb | ( | bool | show_orb | ) |
Definition at line 242 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_show_floating_labels | ( | bool | value | ) |
Definition at line 992 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_show_fps | ( | bool | value | ) |
Definition at line 941 of file preferences.cpp.
Referenced by events::console_handler::do_fps(), and game_launcher::game_launcher().
void preferences::set_show_haloes | ( | bool | value | ) |
Definition at line 1012 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members(), and preferences::manager::manager().
void preferences::set_show_moved_orb | ( | bool | show_orb | ) |
Definition at line 249 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_show_partial_orb | ( | bool | show_orb | ) |
Definition at line 263 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_show_side_colors | ( | bool | value | ) |
Definition at line 901 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_show_standing_animations | ( | bool | value | ) |
Definition at line 931 of file preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_show_unmoved_orb | ( | bool | show_orb | ) |
Definition at line 256 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_shroud | ( | bool | value | ) |
Definition at line 696 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_shuffle_sides | ( | bool | value | ) |
Definition at line 621 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_skip_mp_replay | ( | bool | value | ) |
Definition at line 742 of file game_preferences.cpp.
References set().
Referenced by mp::lobby::process_event_impl(), and gui2::tlobby_main::skip_replay_changed_callback().
bool preferences::set_sound | ( | bool | ison | ) |
Definition at line 636 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), set(), sound_on(), sound::stop_sound(), turn_bell(), and UI_sound_on().
Referenced by hotkey::execute_command(), and gui2::tpreferences::initialize_members().
Definition at line 538 of file preferences.cpp.
References sound::set_sound_volume(), and sound_volume().
Referenced by gui2::tpreferences::initialize_members(), and preferences::manager::manager().
void preferences::set_theme | ( | const std::string & | theme | ) |
Definition at line 980 of file game_preferences.cpp.
References set().
Referenced by show_theme_dialog().
void preferences::set_turbo | ( | bool | ison | ) |
Definition at line 68 of file preferences_display.cpp.
References _set_turbo(), display::get_singleton(), and display::set_turbo().
Referenced by gui2::tpreferences::initialize_members(), set_preference_display_settings(), and play_controller::hotkey_handler::toggle_accelerated_speed().
void preferences::set_turbo_speed | ( | double | speed | ) |
Definition at line 77 of file preferences_display.cpp.
References display::get_singleton(), save_turbo_speed(), and display::set_turbo_speed().
Referenced by gui2::tpreferences::accl_speed_slider_callback(), and set_preference_display_settings().
bool preferences::set_turn_bell | ( | bool | ison | ) |
Definition at line 583 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), set(), sound_on(), sound::stop_bell(), turn_bell(), and UI_sound_on().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_turn_dialog | ( | bool | ison | ) |
Definition at line 566 of file game_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
Definition at line 706 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
bool preferences::set_UI_sound | ( | bool | ison | ) |
Definition at line 607 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), set(), sound_on(), sound::stop_UI_sound(), turn_bell(), and UI_sound_on().
Referenced by gui2::tpreferences::initialize_members().
Definition at line 568 of file preferences.cpp.
References sound::set_UI_volume(), and UI_volume().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_unmoved_color | ( | const std::string & | color_id | ) |
Definition at line 325 of file preferences.cpp.
Referenced by gui2::tselect_orb_colors::post_show().
void preferences::set_use_map_settings | ( | bool | value | ) |
Definition at line 639 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_use_twelve_hour_clock_format | ( | bool | value | ) |
Definition at line 816 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
Definition at line 826 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
void preferences::set_whisper_friends_only | ( | bool | v | ) |
Definition at line 47 of file lobby_preferences.cpp.
References set().
Referenced by gui2::tpreferences::initialize_members().
void preferences::set_wrap_login | ( | bool | wrap | ) |
void preferences::set_wrap_password | ( | bool | wrap | ) |
Definition at line 460 of file game_preferences.cpp.
References set().
Referenced by set_password().
Definition at line 836 of file game_preferences.cpp.
References set().
Referenced by mp::configure::~configure().
bool preferences::show_ai_moves | ( | ) |
Definition at line 891 of file game_preferences.cpp.
References get().
Referenced by ai::move_result::do_execute(), ai::recall_result::do_execute(), ai::recruit_result::do_execute(), gui2::tpreferences::initialize_members(), and SYNCED_COMMAND_HANDLER_FUNCTION().
bool preferences::show_all_units_in_help | ( | ) |
Definition at line 1089 of file game_preferences.cpp.
References get().
Referenced by help::description_type().
bool preferences::show_allied_orb | ( | ) |
Definition at line 232 of file preferences.cpp.
References game_config::show_ally_orb.
Referenced by unit_drawer::redraw_unit().
bool preferences::show_combat | ( | ) |
Definition at line 591 of file game_preferences.cpp.
References get().
Referenced by unit_display::unit_attack(), unit_display::unit_die(), unit_display::unit_draw_weapon(), and unit_display::unit_sheath_weapon().
bool preferences::show_enemy_orb | ( | ) |
Definition at line 239 of file preferences.cpp.
References game_config::show_enemy_orb.
Referenced by unit_drawer::redraw_unit().
bool preferences::show_floating_labels | ( | ) |
Definition at line 987 of file game_preferences.cpp.
References get().
Referenced by game_display::float_label(), and gui2::tpreferences::initialize_members().
bool preferences::show_fps | ( | ) |
Definition at line 936 of file preferences.cpp.
Referenced by events::console_handler::do_fps(), and display::update_display().
bool preferences::show_haloes | ( | ) |
Definition at line 1007 of file game_preferences.cpp.
Referenced by display::draw(), gui2::tpreferences::initialize_members(), halo::halo_impl::render(), and halo::halo_impl::unrender().
bool preferences::show_moved_orb | ( | ) |
Definition at line 246 of file preferences.cpp.
References game_config::show_moved_orb.
Referenced by unit_drawer::redraw_unit().
bool preferences::show_partial_orb | ( | ) |
Definition at line 260 of file preferences.cpp.
References game_config::show_partial_orb.
Referenced by unit_drawer::redraw_unit().
void preferences::show_preferences_dialog | ( | CVideo & | video, |
const config & | game_cfg, | ||
const DIALOG_OPEN_TO | initial_view | ||
) |
Definition at line 51 of file preferences_display.cpp.
References gui2::tpreferences::set_selected_index(), gui2::tdialog::show(), VIEW_DEFAULT, and VIEW_FRIENDS.
Referenced by events::chat_command_handler::do_display(), do_preferences_dialog(), events::menu_handler::preferences(), editor::editor_controller::preferences(), and game_launcher::show_preferences().
bool preferences::show_side_colors | ( | ) |
Definition at line 906 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and unit_drawer::redraw_unit().
bool preferences::show_standing_animations | ( | ) |
Definition at line 926 of file preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), unit_animation_component::set_selecting(), and unit_animation_component::set_standing().
bool preferences::show_theme_dialog | ( | CVideo & | video | ) |
Definition at line 118 of file preferences_display.cpp.
References _(), theme::get_known_themes(), gui2::ttheme_list::selected_index(), gui2::ttheme_list::set_selected_index(), set_theme(), gui2::tdialog::show(), gui2::show_transient_message(), and theme().
Referenced by events::console_handler::do_theme(), and gui2::tpreferences::initialize_members().
bool preferences::show_unmoved_orb | ( | ) |
Definition at line 253 of file preferences.cpp.
References game_config::show_unmoved_orb.
Referenced by unit_drawer::redraw_unit().
Definition at line 151 of file preferences_display.cpp.
References _(), filesystem::get_cwd(), get_mp_server_program_name(), utils::interpolate_variables_into_string(), filesystem::is_directory(), set_mp_server_program_name(), dialogs::show_file_chooser_dialog(), and WESNOTH_PREFIX.
Referenced by gui2::tpreferences::initialize_members(), and game_launcher::play_multiplayer().
bool preferences::shroud | ( | ) |
Definition at line 691 of file game_preferences.cpp.
References get().
Referenced by editor::context_manager::edit_side_dialog(), game_lua_kernel::intf_modify_side(), ng::configure_engine::shroud_game_default(), and gui2::tmp_create_game::update_map_settings().
bool preferences::shuffle_sides | ( | ) |
Definition at line 616 of file game_preferences.cpp.
References get().
Referenced by ng::configure_engine::shuffle_sides_default().
bool preferences::skip_mp_replay | ( | ) |
Definition at line 737 of file game_preferences.cpp.
References get().
Referenced by enter_wait_mode(), mp::lobby::lobby(), and gui2::tlobby_main::pre_show().
bool preferences::sort_list | ( | ) |
Definition at line 22 of file lobby_preferences.cpp.
References get().
Referenced by mp::ui::gamelist_updated(), gui2::tpreferences::initialize_members(), and mp::ui::set_selected_game().
size_t preferences::sound_buffer_size | ( | ) |
Definition at line 488 of file preferences.cpp.
Referenced by sound::init_sound().
bool preferences::sound_on | ( | ) |
Definition at line 631 of file preferences.cpp.
Referenced by hotkey::execute_command(), gui2::tpreferences::initialize_members(), countdown_clock::maybe_play_sound(), sound::play_sound(), sound::play_sound_positioned(), sound::play_timer(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), and set_UI_sound().
int preferences::sound_volume | ( | ) |
Definition at line 533 of file preferences.cpp.
Referenced by sound::init_sound(), gui2::tpreferences::initialize_members(), preferences::manager::manager(), set_sound_volume(), and game_events::WML_HANDLER_FUNCTION().
std::string preferences::theme | ( | ) |
Definition at line 961 of file game_preferences.cpp.
References get(), and CVideo::get_singleton().
Referenced by controller_base::get_theme(), and show_theme_dialog().
void preferences::toggle_minimap_draw_terrain | ( | ) |
Definition at line 911 of file preferences.cpp.
References minimap_draw_terrain(), and set().
Referenced by hotkey::execute_command().
void preferences::toggle_minimap_draw_units | ( | ) |
Definition at line 891 of file preferences.cpp.
References minimap_draw_units(), and set().
Referenced by hotkey::execute_command().
void preferences::toggle_minimap_draw_villages | ( | ) |
Definition at line 901 of file preferences.cpp.
References minimap_draw_villages(), and set().
Referenced by hotkey::execute_command().
void preferences::toggle_minimap_movement_coding | ( | ) |
Definition at line 871 of file preferences.cpp.
References minimap_movement_coding(), and set().
Referenced by hotkey::execute_command().
void preferences::toggle_minimap_terrain_coding | ( | ) |
Definition at line 881 of file preferences.cpp.
References minimap_terrain_coding(), and set().
Referenced by hotkey::execute_command().
bool preferences::turbo | ( | ) |
Definition at line 398 of file preferences.cpp.
References CVideo::get_singleton().
Referenced by gui2::tpreferences::initialize_members(), set_preference_display_settings(), display::set_turbo(), and play_controller::hotkey_handler::toggle_accelerated_speed().
double preferences::turbo_speed | ( | ) |
Definition at line 412 of file preferences.cpp.
Referenced by gui2::tpreferences::initialize_members(), and set_preference_display_settings().
bool preferences::turn_bell | ( | ) |
Definition at line 578 of file preferences.cpp.
Referenced by playsingle_controller::before_human_turn(), countdown_clock::maybe_play_sound(), sound::play_bell(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), and set_UI_sound().
bool preferences::turn_dialog | ( | ) |
Definition at line 561 of file game_preferences.cpp.
References get().
Referenced by gui2::tpreferences::initialize_members(), and playsingle_controller::show_turn_dialog().
int preferences::turns | ( | ) |
Definition at line 701 of file game_preferences.cpp.
References get(), and settings::get_turns().
Referenced by editor::context_manager::edit_scenario_dialog(), ai::configuration::expand_simplified_aspects(), ai::default_recruitment::recruitment::get_estimated_income(), pathfind::mark_route(), ng::configure_engine::num_turns_default(), and gui2::tmp_create_game::update_map_settings().
bool preferences::UI_sound_on | ( | ) |
Definition at line 602 of file preferences.cpp.
Referenced by gui2::tpreferences::initialize_members(), countdown_clock::maybe_play_sound(), sound::play_UI_sound(), mp_ui_alerts::ready_for_start(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), and set_UI_sound().
int preferences::UI_volume | ( | ) |
Definition at line 563 of file preferences.cpp.
Referenced by sound::init_sound(), gui2::tpreferences::initialize_members(), and set_UI_volume().
std::string preferences::unmoved_color | ( | ) |
Definition at line 319 of file preferences.cpp.
References fix_orb_color_name(), and game_config::colors::unmoved_orb_color.
Referenced by display::draw_minimap_units(), image::getMinimap(), gui2::tselect_orb_colors::pre_show(), and unit_drawer::redraw_unit().
bool preferences::use_color_cursors | ( | ) |
Definition at line 956 of file preferences.cpp.
Referenced by gui2::twindow::draw(), and use_color_cursors().
bool preferences::use_map_settings | ( | ) |
Definition at line 634 of file game_preferences.cpp.
References get().
Referenced by mp::wait::join_game(), gui2::tmp_create_game::update_map_settings(), and ng::configure_engine::use_map_settings_default().
bool preferences::use_twelve_hour_clock_format | ( | ) |
Definition at line 1015 of file preferences.cpp.
Referenced by gui2::format_addon_time(), savegame::save_info::format_time_local(), util::format_time_summary(), get_chat_timestamp(), and REPORT_GENERATOR().
int preferences::village_gold | ( | ) |
Definition at line 811 of file game_preferences.cpp.
References get(), and settings::get_village_gold().
Referenced by editor::context_manager::edit_side_dialog(), game_lua_kernel::intf_modify_side(), mp::configure::process_event_impl(), gui2::tmp_create_game::update_map_settings(), and ng::configure_engine::village_gold_default().
int preferences::village_support | ( | ) |
Definition at line 821 of file game_preferences.cpp.
References get(), and settings::get_village_support().
Referenced by gui2::tmp_create_game::update_map_settings(), and ng::configure_engine::village_support_default().
bool preferences::whisper_friends_only | ( | ) |
Definition at line 42 of file lobby_preferences.cpp.
References get().
Referenced by gui2::tlobby_main::add_whisper_received(), gui2::tpreferences::initialize_members(), and mp::ui::process_message().
bool preferences::wrap_login | ( | ) |
Returns whether the MP username is stored wrapped in markers.
New usernames are stored in a specific format to force string interpretation (due to bug #16571).
Definition at line 465 of file game_preferences.cpp.
References get(), and have_setting().
Referenced by login().
bool preferences::wrap_password | ( | ) |
Returns whether the password is stored wrapped in markers.
New passwords are stored in a specific format to force string interpretation (due to bug #16571).
Definition at line 453 of file game_preferences.cpp.
References get(), and have_setting().
Referenced by password().
void preferences::write_preferences | ( | ) |
Definition at line 135 of file preferences.cpp.
References ERR_FS, filesystem::get_prefs_file(), filesystem::ostream_file(), and write().
Referenced by events::console_handler::do_set_alias(), and preferences::base_manager::~base_manager().
int preferences::xp_modifier | ( | ) |
Definition at line 831 of file game_preferences.cpp.
References get(), and settings::get_xp_modifier().
Referenced by gui2::tmp_create_game::update_map_settings(), and ng::configure_engine::xp_modifier_default().
bool preferences::yellow_confirm | ( | ) |
Definition at line 1132 of file game_preferences.cpp.
References get().
Referenced by events::menu_handler::end_turn().
prefs_event_handler preferences::event_handler_ |
Definition at line 67 of file preferences.cpp.
const int preferences::INFINITE_AUTO_SAVES = 61 |
Definition at line 233 of file game_preferences.hpp.
Referenced by playsingle_controller::before_human_turn(), play_controller::do_autosave(), and gui2::get_max_autosaves_status_label().