#include <preferences.hpp>
Public Member Functions | |
~prefs () | |
void | write_preferences () |
void | load_advanced_prefs (const game_config_view &gc) |
void | migrate_preferences (const std::string &prefs_dir) |
void | reload_preferences () |
std::set< std::string > | all_attributes () |
void | load_hotkeys () |
void | save_hotkeys () |
void | clear_hotkeys () |
bool | show_fps () |
void | set_show_fps (bool value) |
bool | message_private () |
void | set_message_private (bool value) |
bool | message_bell () |
bool | middle_click_scrolls () |
int | mouse_scroll_threshold () |
Gets the threshold for when to scroll. More... | |
bool | confirm_load_save_from_different_version () |
bool | use_twelve_hour_clock_format () |
sort_order::type | addon_manager_saved_order_direction () |
void | set_addon_manager_saved_order_direction (sort_order::type value) |
bool | get_show_deprecation (bool def) |
bool | get_scroll_when_mouse_outside (bool def) |
bool | auto_open_whisper_windows () |
bool | show_combat () |
std::string | get_chat_timestamp (const std::chrono::system_clock::time_point &t) |
compression::format | save_compression_format () |
std::vector< std::string > * | 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. More... | |
const std::vector< preferences::option > & | get_advanced_preferences () |
point | resolution () |
void | set_resolution (const point &res) |
int | pixel_scale () |
void | set_pixel_scale (const int scale) |
bool | turbo () |
void | set_turbo (bool ison) |
int | font_scaling () |
void | set_font_scaling (int scale) |
int | font_scaled (int size) |
int | keepalive_timeout () |
void | keepalive_timeout (int seconds) |
bool | sound () |
bool | set_sound (bool ison) |
unsigned int | sample_rate () |
void | save_sample_rate (const unsigned int rate) |
std::size_t | sound_buffer_size () |
void | save_sound_buffer_size (const std::size_t size) |
int | sound_volume () |
void | set_sound_volume (int vol) |
int | bell_volume () |
void | set_bell_volume (int vol) |
int | ui_volume () |
void | set_ui_volume (int vol) |
bool | music_on () |
bool | set_music (bool ison) |
int | music_volume () |
void | set_music_volume (int vol) |
bool | turn_bell () |
bool | set_turn_bell (bool ison) |
bool | ui_sound_on () |
bool | set_ui_sound (bool ison) |
void | add_alias (const std::string &alias, const std::string &command) |
optional_const_config | get_alias () |
std::string | allied_color () |
void | set_allied_color (const std::string &color_id) |
std::string | enemy_color () |
void | set_enemy_color (const std::string &color_id) |
std::string | unmoved_color () |
void | set_unmoved_color (const std::string &color_id) |
std::string | partial_color () |
void | set_partial_color (const std::string &color_id) |
std::string | moved_color () |
void | set_moved_color (const std::string &color_id) |
std::string | reach_map_color () |
void | set_reach_map_color (const std::string &color_id) |
std::string | reach_map_enemy_color () |
void | set_reach_map_enemy_color (const std::string &color_id) |
int | reach_map_border_opacity () |
void | set_reach_map_border_opacity (const int new_opacity) |
int | reach_map_tint_opacity () |
void | set_reach_map_tint_opacity (const int new_opacity) |
int | scroll_speed () |
void | set_scroll_speed (const int scroll) |
void | set_dir_bookmarks (const config &cfg) |
optional_const_config | dir_bookmarks () |
std::size_t | editor_mru_limit () |
std::vector< std::string > | do_read_editor_mru () |
void | do_commit_editor_mru (const std::vector< std::string > &mru) |
std::vector< std::string > | recent_files () |
Retrieves the list of recently opened files. More... | |
void | add_recent_files_entry (const std::string &path) |
Adds an entry to the recent files list. More... | |
bool | use_color_cursors () |
void | set_color_cursors (bool value) |
bool | show_standing_animations () |
void | set_show_standing_animations (bool value) |
void | show_wesnothd_server_search () |
bool | show_theme_dialog () |
void | set_theme (const std::string &theme) |
std::string | theme () |
void | set_mp_server_program_name (const std::string &) |
std::string | get_mp_server_program_name () |
bool | parse_should_show_lobby_join (const std::string &sender, const std::string &message) |
pref_constants::lobby_joins | get_lobby_joins () |
void | set_lobby_joins (pref_constants::lobby_joins show) |
const std::map< std::string, preferences::acquaintance > & | get_acquaintances () |
const std::string | get_ignored_delim () |
std::map< std::string, std::string > | get_acquaintances_nice (const std::string &filter) |
std::pair< preferences::acquaintance *, bool > | add_acquaintance (const std::string &nick, const std::string &mode, const std::string ¬es) |
void | add_completed_campaign (const std::string &campaign_id, const std::string &difficulty_level) |
bool | remove_acquaintance (const std::string &nick) |
bool | is_friend (const std::string &nick) |
bool | is_ignored (const std::string &nick) |
bool | is_campaign_completed (const std::string &campaign_id) |
bool | is_campaign_completed (const std::string &campaign_id, const std::string &difficulty_level) |
void | add_game_preset (config &&preset_data) |
void | remove_game_preset (int id) |
config::child_itors | get_game_presets () |
optional_const_config | get_game_preset (int id) |
const std::vector< game_config::server_info > & | builtin_servers_list () |
std::vector< game_config::server_info > | user_servers_list () |
void | set_user_servers_list (const std::vector< game_config::server_info > &value) |
std::string | network_host () |
void | set_network_host (const std::string &host) |
std::string | campaign_server () |
void | set_campaign_server (const std::string &host) |
const config & | options () |
void | set_options (const config &values) |
std::chrono::seconds | countdown_init_time () |
void | set_countdown_init_time (const std::chrono::seconds &value) |
void | clear_countdown_init_time () |
std::chrono::seconds | countdown_turn_bonus () |
void | set_countdown_turn_bonus (const std::chrono::seconds &value) |
void | clear_countdown_turn_bonus () |
std::chrono::seconds | countdown_reservoir_time () |
void | set_countdown_reservoir_time (const std::chrono::seconds &value) |
void | clear_countdown_reservoir_time () |
std::chrono::seconds | countdown_action_bonus () |
void | set_countdown_action_bonus (const std::chrono::seconds &value) |
void | clear_countdown_action_bonus () |
std::chrono::minutes | chat_message_aging () |
void | set_chat_message_aging (const std::chrono::minutes &value) |
int | village_gold () |
void | set_village_gold (int value) |
int | village_support () |
void | set_village_support (int value) |
int | xp_modifier () |
void | set_xp_modifier (int value) |
bool | remember_password () |
void | set_remember_password (bool remember) |
std::string | login () |
void | set_login (const std::string &login) |
std::string | password (const std::string &server, const std::string &login) |
void | set_password (const std::string &server, const std::string &login, const std::string &key) |
const std::vector< std::string > & | modifications (bool mp=true) |
void | set_modifications (const std::vector< std::string > &value, bool mp=true) |
std::set< std::string > & | encountered_units () |
std::set< t_translation::terrain_code > & | encountered_terrains () |
bool | yellow_confirm () |
bool | green_confirm () |
bool | confirm_no_moves () |
void | encounter_recruitable_units (const std::vector< team > &teams) |
void | encounter_start_units (const unit_map &units) |
void | encounter_recallable_units (const std::vector< team > &teams) |
void | encounter_map_terrain (const gamemap &map) |
void | encounter_all_content (const game_board &gb) |
bool | achievement (const std::string &content_for, const std::string &id) |
void | set_achievement (const std::string &content_for, const std::string &id) |
Marks the specified achievement as completed. More... | |
int | progress_achievement (const std::string &content_for, const std::string &id, int limit=999999, int max_progress=999999, int amount=0) |
Increments the achievement's current progress by amount if it hasn't already been completed. More... | |
bool | sub_achievement (const std::string &content_for, const std::string &id, const std::string &sub_id) |
void | set_sub_achievement (const std::string &content_for, const std::string &id, const std::string &sub_id) |
Marks the specified sub-achievement as completed. More... | |
void | clear_mp_alert_prefs () |
The most recently selected add-on id from the editor. More... | |
Static Public Member Functions | |
static prefs & | get () |
static void | disable_preferences_save () |
static bool | preferences_save () |
Private Member Functions | |
prefs () | |
prefs (const prefs &p)=delete | |
prefs & | operator= (const prefs &p)=delete |
prefs (const prefs &&p)=delete | |
prefs & | operator= (const prefs &&p)=delete |
void | load_preferences () |
void | clear_preferences () |
void | load_credentials () |
void | save_credentials () |
void | clear_credentials () |
void | set_child (const std::string &key, const config &val) |
optional_const_config | get_child (const std::string &key) |
std::string | get (const std::string &key, const std::string &def) |
config::attribute_value | get_as_attribute (const std::string &key) |
std::string | get_system_username () |
preferences::secure_buffer | aes_encrypt (const preferences::secure_buffer &text, const preferences::secure_buffer &key) |
Encrypts the value of text using key and a hard coded IV using AES. More... | |
preferences::secure_buffer | aes_decrypt (const preferences::secure_buffer &text, const preferences::secure_buffer &key) |
Same as aes_encrypt(), except of course it takes encrypted data as an argument and returns decrypted data. More... | |
preferences::secure_buffer | build_key (const std::string &server, const std::string &login) |
Fills a secure_buffer with 32 bytes of deterministically generated bytes, then overwrites it with the system login name, server login name, and server name. More... | |
preferences::secure_buffer | escape (const preferences::secure_buffer &text) |
preferences::secure_buffer | unescape (const preferences::secure_buffer &text) |
Private Attributes | |
config | preferences_ |
bool | fps_ |
std::map< std::string, std::set< std::string > > | completed_campaigns_ |
std::set< std::string > | encountered_units_set_ |
std::set< t_translation::terrain_code > | encountered_terrains_set_ |
std::map< std::string, std::vector< std::string > > | history_map_ |
std::map< std::string, preferences::acquaintance > | acquaintances_ |
config | option_values_ |
bool | options_initialized_ |
std::vector< std::string > | mp_modifications_ |
bool | mp_modifications_initialized_ |
std::vector< std::string > | sp_modifications_ |
bool | sp_modifications_initialized_ |
bool | message_private_on_ |
std::vector< preferences::login_info > | credentials_ |
std::vector< preferences::option > | advanced_prefs_ |
std::set< std::string > | unknown_synced_attributes_ |
std::set< std::string > | unknown_unsynced_attributes_ |
std::set< std::string > | unknown_synced_children_ |
std::set< std::string > | unknown_unsynced_children_ |
Static Private Attributes | |
static bool | no_preferences_save = false |
static constexpr std::array | synced_attributes_ |
static constexpr std::array | synced_children_ |
static constexpr std::array | unsynced_attributes_ |
static constexpr std::array | unsynced_children_ |
Friends | |
struct | preferences_dialog_friend |
int | impl_preferences_set (lua_State *L) |
The __newindex metamethod. More... | |
int | impl_preferences_get (lua_State *L) |
The __index metamethod. More... | |
Definition at line 192 of file preferences.hpp.
prefs::~prefs | ( | ) |
Definition at line 104 of file preferences.cpp.
References acquaintances_, config::add_child(), cfg, config::clear_children(), completed_campaigns_, encountered_terrains_set_, encountered_units_set_, ERR_FS, utils::get_unknown_exception_type(), history_map_, utils::join(), draw::line(), no_preferences_save, preferences_, set_child(), t_translation::write_list(), and write_preferences().
|
private |
Definition at line 72 of file preferences.cpp.
References acquaintances_, config::child_range(), preferences::acquaintance::get_nick(), config::has_attribute(), load_credentials(), load_preferences(), and preferences_.
|
privatedelete |
|
privatedelete |
bool prefs::achievement | ( | const std::string & | content_for, |
const std::string & | id | ||
) |
content_for | The achievement group the achievement is part of. |
id | The ID of the achievement within the achievement group. |
Definition at line 983 of file preferences.cpp.
References config::child_range(), utils::contains(), preferences_, and utils::split().
Referenced by progress_achievement(), set_sub_achievement(), and sub_achievement().
std::pair< preferences::acquaintance *, bool > prefs::add_acquaintance | ( | const std::string & | nick, |
const std::string & | mode, | ||
const std::string & | notes | ||
) |
Definition at line 1421 of file preferences.cpp.
References acquaintances_, and utils::isvalid_wildcard().
Referenced by gui2::dialogs::preferences_dialog::add_friend_list_entry(), gui2::dialogs::lobby_player_info::add_to_friends_button_callback(), and gui2::dialogs::lobby_player_info::add_to_ignores_button_callback().
void prefs::add_alias | ( | const std::string & | alias, |
const std::string & | command | ||
) |
Definition at line 935 of file preferences.cpp.
References config::child_or_add(), and preferences_.
Referenced by events::console_handler::do_set_alias().
void prefs::add_completed_campaign | ( | const std::string & | campaign_id, |
const std::string & | difficulty_level | ||
) |
Definition at line 1477 of file preferences.cpp.
References completed_campaigns_.
Referenced by campaign_controller::play_game().
void prefs::add_game_preset | ( | config && | preset_data | ) |
Definition at line 1551 of file preferences.cpp.
References config::append(), c, config::child_range(), and preferences_.
Referenced by gui2::dialogs::mp_create_game::save_preset().
void prefs::add_recent_files_entry | ( | const std::string & | path | ) |
Adds an entry to the recent files list.
Definition at line 1249 of file preferences.cpp.
References do_commit_editor_mru(), do_read_editor_mru(), editor_mru_limit(), utils::erase(), and game_config::path.
Referenced by editor::map_context::add_to_recent_files().
sort_order::type prefs::addon_manager_saved_order_direction | ( | ) |
Definition at line 973 of file preferences.cpp.
References string_enums::enum_base< Definition >::get_enum(), and preferences_.
Referenced by gui2::dialogs::addon_manager::pre_show().
|
private |
Same as aes_encrypt(), except of course it takes encrypted data as an argument and returns decrypted data.
Definition at line 2065 of file preferences.cpp.
References DBG_CFG, ERR_CFG, i, and utils::join().
Referenced by load_credentials(), and password().
|
private |
Encrypts the value of text using key and a hard coded IV using AES.
Max size of text must not be larger than 1008 bytes.
NOTE: This is not meant to provide strong protections against a determined attacker. This is meant to hide the passwords from malware scanning files for passwords, family/friends poking around, etc.
text | The original unencrypted data. |
key | The value to use to encrypt the data. See build_key() for key generation. |
Definition at line 1977 of file preferences.cpp.
References DBG_CFG, ERR_CFG, i, and utils::join().
Referenced by save_credentials(), and set_password().
std::set< std::string > prefs::all_attributes | ( | ) |
Definition at line 221 of file preferences.cpp.
References config::attribute_range(), preferences_, and utils::views::values.
std::string prefs::allied_color | ( | ) |
Definition at line 531 of file preferences.cpp.
References game_config::colors::ally_orb_color, fix_orb_color_name(), and preferences_.
Referenced by orb_status_helper::get_orb_color().
bool prefs::auto_open_whisper_windows | ( | ) |
Definition at line 1184 of file preferences.cpp.
References preferences_.
Referenced by gui2::chatbox::add_whisper_received().
int prefs::bell_volume | ( | ) |
Definition at line 747 of file preferences.cpp.
References gui2::dialogs::bell_volume(), and preferences_.
Referenced by gui2::dialogs::bell_volume(), and set_bell_volume().
|
private |
Fills a secure_buffer with 32 bytes of deterministically generated bytes, then overwrites it with the system login name, server login name, and server name.
If this is more than 32 bytes, then it's truncated. If it's less than 32 bytes, then the pre-generated bytes are used to pad it.
server | The server being logged into. |
login | The username being used to login. |
Definition at line 1965 of file preferences.cpp.
References get_system_username(), i, and login().
Referenced by load_credentials(), password(), save_credentials(), and set_password().
const std::vector< game_config::server_info > & prefs::builtin_servers_list | ( | ) |
Definition at line 1545 of file preferences.cpp.
References game_config::server_list.
Referenced by network_host().
std::string prefs::campaign_server | ( | ) |
Definition at line 1617 of file preferences.cpp.
References pref_constants::default_addons_server, and preferences_.
Referenced by ad_hoc_addon_fetch_session(), and manage_addons().
std::chrono::minutes prefs::chat_message_aging | ( | ) |
Definition at line 1722 of file preferences.cpp.
References chrono::parse_duration(), and preferences_.
Referenced by display_chat_manager::prune_chat_messages().
void prefs::clear_countdown_action_bonus | ( | ) |
Definition at line 1717 of file preferences.cpp.
References preferences_, and config::remove_attribute().
Referenced by gui2::dialogs::mp_create_game::reset_timer_settings().
void prefs::clear_countdown_init_time | ( | ) |
Definition at line 1672 of file preferences.cpp.
References preferences_, and config::remove_attribute().
Referenced by gui2::dialogs::mp_create_game::reset_timer_settings().
void prefs::clear_countdown_reservoir_time | ( | ) |
Definition at line 1687 of file preferences.cpp.
References preferences_, and config::remove_attribute().
Referenced by gui2::dialogs::mp_create_game::reset_timer_settings().
void prefs::clear_countdown_turn_bonus | ( | ) |
Definition at line 1702 of file preferences.cpp.
References preferences_, and config::remove_attribute().
Referenced by gui2::dialogs::mp_create_game::reset_timer_settings().
|
private |
Definition at line 418 of file preferences.cpp.
References credentials_, and draw::fill().
Referenced by load_credentials(), set_password(), and set_remember_password().
void prefs::clear_hotkeys | ( | ) |
Definition at line 929 of file preferences.cpp.
References config::clear_children(), preferences_, and hotkey::reset_default_hotkeys().
Referenced by gui2::dialogs::preferences_dialog::default_hotkey_callback().
void prefs::clear_mp_alert_prefs | ( | ) |
The most recently selected add-on id from the editor.
May be an empty string.
Definition at line 1913 of file preferences.cpp.
References preferences_, and config::remove_attribute().
Referenced by gui2::dialogs::revert_to_default_pref_values().
|
inlineprivate |
Definition at line 647 of file preferences.hpp.
References config::clear(), and preferences_.
Referenced by reload_preferences().
bool prefs::confirm_load_save_from_different_version | ( | ) |
Definition at line 963 of file preferences.cpp.
References preferences_.
bool prefs::confirm_no_moves | ( | ) |
Definition at line 1863 of file preferences.cpp.
References config::empty(), and preferences_.
Referenced by events::menu_handler::end_turn().
std::chrono::seconds prefs::countdown_action_bonus | ( | ) |
Definition at line 1707 of file preferences.cpp.
References chrono::parse_duration(), preferences_, and s.
Referenced by settings::mp_countdown_action_bonus_default().
std::chrono::seconds prefs::countdown_init_time | ( | ) |
Definition at line 1662 of file preferences.cpp.
References chrono::parse_duration(), preferences_, and s.
Referenced by settings::mp_countdown_init_time_default().
std::chrono::seconds prefs::countdown_reservoir_time | ( | ) |
Definition at line 1677 of file preferences.cpp.
References chrono::parse_duration(), preferences_, and s.
Referenced by settings::mp_countdown_reservoir_time_default().
std::chrono::seconds prefs::countdown_turn_bonus | ( | ) |
Definition at line 1692 of file preferences.cpp.
References chrono::parse_duration(), preferences_, and s.
Referenced by settings::mp_countdown_turn_bonus_default().
optional_const_config prefs::dir_bookmarks | ( | ) |
Definition at line 1179 of file preferences.cpp.
References get_child().
|
inlinestatic |
Definition at line 225 of file preferences.hpp.
References no_preferences_save.
Referenced by game_launcher::game_launcher().
void prefs::do_commit_editor_mru | ( | const std::vector< std::string > & | mru | ) |
Definition at line 1222 of file preferences.cpp.
References config::add_child(), cfg, editor_mru_limit(), n, and set_child().
Referenced by add_recent_files_entry().
std::vector< std::string > prefs::do_read_editor_mru | ( | ) |
Definition at line 1200 of file preferences.cpp.
References cfg, config::child_range(), editor_mru_limit(), and get_child().
Referenced by add_recent_files_entry(), and recent_files().
std::size_t prefs::editor_mru_limit | ( | ) |
Definition at line 1189 of file preferences.cpp.
References preferences_.
Referenced by add_recent_files_entry(), do_commit_editor_mru(), and do_read_editor_mru().
void prefs::encounter_all_content | ( | const game_board & | gb | ) |
Definition at line 1905 of file 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().
void prefs::encounter_map_terrain | ( | const gamemap & | map | ) |
Definition at line 1894 of file preferences.cpp.
References encountered_terrains(), gamemap_base::for_each_loc(), gamemap_base::get_terrain(), loc, t, and gamemap::underlying_union_terrain().
Referenced by encounter_all_content().
void prefs::encounter_recallable_units | ( | const std::vector< team > & | teams | ) |
Definition at line 1885 of file preferences.cpp.
References encountered_units_set_, and t.
Referenced by encounter_all_content().
void prefs::encounter_recruitable_units | ( | const std::vector< team > & | teams | ) |
Definition at line 1870 of file preferences.cpp.
References encountered_units_set_.
Referenced by encounter_all_content().
void prefs::encounter_start_units | ( | const unit_map & | units | ) |
Definition at line 1878 of file preferences.cpp.
References encountered_units_set_.
Referenced by encounter_all_content().
std::set< t_translation::terrain_code > & prefs::encountered_terrains | ( | ) |
Definition at line 1836 of file preferences.cpp.
References encountered_terrains_set_.
Referenced by game_board::change_terrain(), encounter_map_terrain(), and help::init_help().
std::set< std::string > & prefs::encountered_units | ( | ) |
Definition at line 1831 of file preferences.cpp.
References encountered_units_set_.
Referenced by unit_creator::add_unit(), advance_unit(), unit::apply_builtin_effect(), help::description_type(), events::console_handler::do_discover(), events::console_handler::do_undiscover(), help::init_help(), intf_add_known_unit(), actions::place_recruit(), unit_creator::post_create(), gui2::dialogs::faction_select::profile_button_callback(), and gui2::tip_of_the_day::shuffle().
std::string prefs::enemy_color | ( | ) |
Definition at line 541 of file preferences.cpp.
References game_config::colors::enemy_orb_color, fix_orb_color_name(), and preferences_.
Referenced by orb_status_helper::get_orb_color().
|
private |
int prefs::font_scaled | ( | int | size | ) |
Definition at line 678 of file preferences.cpp.
References font_scaling(), and utf8::size().
Referenced by font::add_attribute_size(), and font::pango_text::set_font_size().
int prefs::font_scaling | ( | ) |
Definition at line 667 of file preferences.cpp.
References pref_constants::max_font_scaling, pref_constants::min_font_scaling, and preferences_.
Referenced by font_scaled().
|
inlinestatic |
Definition at line 199 of file preferences.hpp.
Referenced by achievement::achievement(), achievement_group::achievement_group(), ad_hoc_addon_fetch_session(), font::add_attribute_size(), replay::add_chat_log_entry(), events::menu_handler::add_chat_message(), display_chat_manager::add_chat_message(), gui2::chatbox::add_chat_room_message_received(), events::chat_handler::add_chat_room_message_sent(), gui2::chatbox::add_chat_room_message_sent(), gui2::dialogs::preferences_dialog::add_friend_list_entry(), gui2::dialogs::lobby_player_info::add_to_friends_button_callback(), gui2::dialogs::lobby_player_info::add_to_ignores_button_callback(), editor::map_context::add_to_recent_files(), unit_creator::add_unit(), gui2::chatbox::add_whisper_received(), gui2::chatbox::add_whisper_sent(), gui2::dialogs::addon_auth::addon_auth(), advance_unit(), settings::allow_observers_default(), gui2::chatbox::append_to_chatbox(), unit::apply_builtin_effect(), gui2::dialogs::preferences_dialog::apply_pixel_scale(), playsingle_controller::before_human_turn(), gui2::dialogs::bell_volume(), gui2::dialogs::title_screen::button_callback_cores(), gui2::dialogs::title_screen::button_callback_multiplayer(), gui2::dialogs::campaign_selection::campaign_selected(), game_board::change_terrain(), gui2::chatbox::chat_input_keypress_callback(), savegame::check_version_compatibility(), gui::floating_textbox::close(), ng::connect_engine::connect_engine(), ng::create_engine::create_engine(), video::current_refresh_rate(), events::menu_handler::custom_command(), gui2::dialogs::preferences_dialog::default_hotkey_callback(), gui2::dialogs::game_load::delete_button_callback(), gui2::dialogs::mp_lobby::delete_preset(), addons_client::delete_remote_addon(), deprecated_message(), help::description_type(), display::display(), play_controller::do_autosave(), play_controller::do_consolesave(), events::console_handler::do_custom(), events::console_handler::do_discover(), events::console_handler::do_droid(), hotkey::command_executor::do_execute_command(), editor::editor_controller::do_execute_command(), events::console_handler::do_fps(), events::chat_command_handler::do_friend(), do_gameloop(), events::chat_command_handler::do_ignore(), events::chat_command_handler::do_remove(), do_replay_handle(), events::console_handler::do_set_alias(), events::console_handler::do_theme(), events::console_handler::do_undiscover(), display::draw_hex(), game_display::draw_hex(), display::draw_minimap_units(), events::menu_handler::end_turn(), gui2::dialogs::mp_lobby::enter_game(), hotkey::command_executor::execute_command_wrap(), editor::context_manager::expand_load_mru_menu(), gui2::dialogs::addon_manager::fetch_addons_list(), gui2::dialogs::mp_join_game::fetch_game_config(), combatant::fight(), game_display::float_label(), settings::fog_game_default(), gui2::dialogs::format_addon_time(), savegame::save_info::format_time_local(), utils::format_time_summary(), mp::ui_alerts::friend_message(), game_config_manager::game_config_manager(), mp::ui_alerts::game_created(), mp::ui_alerts::game_has_begun(), game_launcher::game_launcher(), settings::game_name_default(), gui2::dialogs::mp_join_game::generate_side_list(), help::generate_terrain_sections(), preferences_dialog_friend::get(), play_controller::hotkey_handler::get_action_state(), editor::editor_controller::get_action_state(), gui2::dialogs::mp_method_selection::get_choice(), gui2::dialogs::get_do_not_show_again(), gui2::dialogs::get_dont_ask_again(), gui2::text_history::get_history(), get_locale(), gui2::get_mp_tooltip(), orb_status_helper::get_orb_color(), game_display::get_reachmap_images(), mp::user_info::get_relation(), gui2::dialogs::preferences_dialog::handle_gui2_theme_select(), controller_base::handle_scroll(), gui2::dialogs::preferences_dialog::handle_theme_select(), sound::music_muter::handle_window_event(), wesnothd_connection::handshake(), impl_audio_get(), impl_audio_set(), impl_music_get(), impl_music_set(), impl_preferences_dir(), play_controller::init(), game_state::init(), ng::create_engine::init_all_levels(), gui2::dialogs::title_screen::init_callbacks(), game_config_manager::init_game_config(), editor::editor_controller::init_gui(), help::init_help(), events::console_handler::init_map(), sound::init_sound(), video::init_window(), gui2::dialogs::preferences_dialog::initialize_callbacks(), intf_add_known_unit(), game_lua_kernel::intf_has_achievement(), game_lua_kernel::intf_has_sub_achievement(), game_lua_kernel::intf_progress_achievement(), game_lua_kernel::intf_set_achievement(), game_lua_kernel::intf_set_sub_achievement(), display::invalidate_animations(), play_controller::is_skipping_actions(), game_config_manager::load_addons_cfg(), game_config_manager::load_game_config(), editor::context_manager::load_mru_item(), gui2::dialogs::mp_login::load_password(), login(), manage_addons(), wb::manager::manager(), ng::campaign::mark_if_completed(), countdown_clock::maybe_play_sound(), migrate_preferences(), events::mouse_handler_base::mouse_press(), events::mouse_handler_base::mouse_wheel(), actions::move_unit_and_record(), gui2::dialogs::mp_connect::mp_connect(), settings::mp_countdown_action_bonus_default(), settings::mp_countdown_default(), settings::mp_countdown_init_time_default(), settings::mp_countdown_reservoir_time_default(), settings::mp_countdown_turn_bonus_default(), gui2::dialogs::mp_create_game::mp_create_game(), gui2::dialogs::mp_lobby::mp_lobby(), gui2::dialogs::mp_login::mp_login(), gui2::dialogs::mp_options_helper::mp_options_helper(), gui2::dialogs::music_on(), gui2::dialogs::music_volume(), ng::side_engine::new_config(), settings::num_turns_default(), gui2::dialogs::preferences_dialog::on_advanced_prefs_list_select(), gui2::dialogs::preferences_dialog::on_friends_list_select(), gui2::dialogs::mp_create_game::on_game_select(), wb::manager::on_init_side(), gui2::dialogs::addon_manager::on_order_changed(), gui2::dialogs::mp_connect::on_server_add(), gui2::dialogs::mp_connect::on_server_delete(), gui2::dialogs::addon_manager::order_addons(), actions::place_recruit(), sound::play_bell(), campaign_controller::play_game(), playsingle_controller::play_human_turn(), playmp_controller::play_human_turn(), game_launcher::play_multiplayer(), sound::play_new_music(), playsingle_controller::play_scenario(), sound::play_sound(), sound::play_sound_positioned(), sound::play_timer(), sound::play_UI_sound(), mp::ui_alerts::player_joins(), mp::ui_alerts::player_leaves(), gui2::player_list_helper::player_list_helper(), gui2::dialogs::editor_choose_addon::populate_list(), unit_creator::post_create(), gui2::dialogs::achievements_dialog::post_show(), gui2::dialogs::editor_choose_addon::post_show(), gui2::dialogs::language_selection::post_show(), gui2::dialogs::migrate_version_selection::post_show(), gui2::dialogs::mp_create_game::post_show(), gui2::dialogs::mp_method_selection::post_show(), gui2::dialogs::preferences_dialog::post_show(), gui2::dialogs::reachmap_options::post_show(), gui2::dialogs::select_orb_colors::post_show(), gui2::dialogs::sp_options_configure::post_show(), gui2::dialogs::addon_manager::pre_show(), gui2::dialogs::campaign_difficulty::pre_show(), gui2::dialogs::mp_lobby::pre_show(), gui2::dialogs::mp_change_control::pre_show(), gui2::dialogs::mp_create_game::pre_show(), gui2::dialogs::mp_method_selection::pre_show(), gui2::dialogs::reachmap_options::pre_show(), gui2::dialogs::select_orb_colors::pre_show(), orb_status_helper::prefs_show_orb(), image::prep_minimap_for_rendering(), mp::ui_alerts::private_message(), gui2::dialogs::campaign_selection::proceed(), sound::music_thinker::process(), gui2::tracked_drawable::process(), mp::lobby_info::process_gamelist(), gui2::chatbox::process_message(), playmp_controller::process_network_data_impl(), gui2::dialogs::faction_select::profile_button_callback(), display_chat_manager::prune_chat_messages(), mp::ui_alerts::public_message(), gui2::dialogs::addon_manager::publish_addon(), events::pump(), sound::driver_status::query(), settings::random_faction_mode_default(), settings::random_start_time_default(), mp::ui_alerts::ready_for_start(), ng::side_engine::ready_for_start(), terrain_builder::tile::rebuild_cache(), unit_drawer::redraw_unit(), gui2::dialogs::title_screen::register_button(), gui2::dialogs::preferences_dialog::remove_friend_list_entry(), gui2::dialogs::lobby_player_info::remove_from_list_button_callback(), REPORT_GENERATOR(), events::menu_handler::request_control_change(), sound::reset_sound(), gui2::dialogs::mp_create_game::reset_timer_settings(), gui2::dialogs::revert_to_default_pref_values(), play_controller::save_game(), play_controller::save_game_auto(), gui2::dialogs::mp_login::save_password(), gui2::dialogs::mp_create_game::save_preset(), play_controller::save_replay(), play_controller::save_replay_auto(), display::scroll_to_xy(), gui2::chatbox::send_chat_message(), events::menu_handler::send_chat_message(), events::chat_handler::send_chat_room_message(), ng::connect_engine::send_level_data(), events::chat_handler::send_whisper(), mp::ui_alerts::server_message(), preferences_dialog_friend::set(), gui2::dialogs::set_bell_volume(), gui2::dialogs::set_do_not_show_again(), gui2::dialogs::set_dont_ask_again(), font::pango_text::set_font_size(), video::set_fullscreen(), gui2::dialogs::preferences_dialog::set_gui2_theme_list(), gui2::dialogs::set_music(), gui2::dialogs::set_music_volume(), video::set_resolution(), unit_animation_component::set_selecting(), gui2::dialogs::set_sound(), gui2::dialogs::set_sound_volume(), unit_animation_component::set_standing(), gui2::dialogs::preferences_dialog::set_theme_list(), gui2::dialogs::set_turn_bell(), gui2::dialogs::set_ui_sound(), gui2::dialogs::set_ui_volume(), editor::context_manager::set_update_transitions_mode(), display::set_zoom(), events::menu_handler::shout(), gui2::dialogs::mp_join_game::show_flg_select(), playsingle_controller::show_turn_dialog(), settings::shroud_game_default(), gui2::tip_of_the_day::shuffle(), settings::shuffle_sides_default(), gui2::dialogs::mp_lobby::skip_replay_changed_callback(), gui2::dialogs::sound(), gui2::dialogs::sound_volume(), events::menu_handler::speak(), mp::start_local_game(), mp::start_local_game_commandline(), game_launcher::start_wesnothd(), gui2::dialogs::chat_log::model::stream_log(), play_controller::tab(), game_classification::to_config(), play_controller::hotkey_handler::toggle_accelerated_speed(), events::menu_handler::toggle_ellipses(), video::toggle_fullscreen(), events::menu_handler::toggle_grid(), editor::editor_controller::toggle_grid(), editor::context_manager::toggle_update_transitions(), display::turbo_speed(), gui2::dialogs::turn_bell(), mp::ui_alerts::turn_changed(), gui2::dialogs::ui_sound_on(), gui2::dialogs::ui_volume(), unit_display::unit_attack(), unit_display::unit_die(), unit_display::unit_draw_weapon(), unit_moves(), unit_display::unit_sheath_weapon(), display::update(), video::update_framebuffer(), gui2::player_list_helper::update_list(), gui2::dialogs::mp_lobby::update_queue_list(), settings::use_map_settings_default(), settings::village_gold_default(), settings::village_support_default(), events::menu_handler::whisper(), savegame::save_index_class::write_save_index(), settings::xp_modifier_default(), and campaign_controller::~campaign_controller().
|
private |
Definition at line 508 of file preferences.cpp.
References config::empty(), and preferences_.
const std::map< std::string, preferences::acquaintance > & prefs::get_acquaintances | ( | ) |
Definition at line 1389 of file preferences.cpp.
References acquaintances_.
Referenced by gui2::dialogs::preferences_dialog::on_friends_list_select(), and gui2::dialogs::preferences_dialog::remove_friend_list_entry().
std::map< std::string, std::string > prefs::get_acquaintances_nice | ( | const std::string & | filter | ) |
Definition at line 1408 of file preferences.cpp.
References acquaintances_, and utils::views::filter.
Referenced by play_controller::tab().
|
inline |
Definition at line 249 of file preferences.hpp.
References advanced_prefs_.
Referenced by gui2::dialogs::preferences_dialog::on_advanced_prefs_list_select().
optional_const_config prefs::get_alias | ( | ) |
Definition at line 942 of file preferences.cpp.
References get_child().
|
private |
Definition at line 512 of file preferences.cpp.
References preferences_.
std::string prefs::get_chat_timestamp | ( | const std::chrono::system_clock::time_point & | t | ) |
Definition at line 1818 of file preferences.cpp.
References _(), chrono::format_local_timestamp(), t, and use_twelve_hour_clock_format().
Referenced by display_chat_manager::add_chat_message(), and gui2::dialogs::chat_log::model::stream_log().
|
private |
Definition at line 503 of file preferences.cpp.
References config::optional_child(), and preferences_.
Referenced by dir_bookmarks(), do_read_editor_mru(), get_alias(), load_preferences(), and options().
optional_const_config prefs::get_game_preset | ( | int | id | ) |
Definition at line 1573 of file preferences.cpp.
References config::find_child(), and preferences_.
Referenced by gui2::dialogs::mp_lobby::enter_game().
config::child_itors prefs::get_game_presets | ( | ) |
Definition at line 1568 of file preferences.cpp.
References config::child_range(), and preferences_.
std::vector< std::string > * prefs::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 1847 of file preferences.cpp.
References history_map_, and id.
Referenced by gui2::text_history::get_history().
const std::string prefs::get_ignored_delim | ( | ) |
Definition at line 1394 of file preferences.cpp.
References acquaintances_, and utils::join().
Referenced by ng::connect_engine::send_level_data().
pref_constants::lobby_joins prefs::get_lobby_joins | ( | ) |
Definition at line 1520 of file preferences.cpp.
References preferences_, pref_constants::show_all, pref_constants::show_friends, and pref_constants::show_none.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks(), and parse_should_show_lobby_join().
std::string prefs::get_mp_server_program_name | ( | ) |
Definition at line 1384 of file preferences.cpp.
References preferences_.
Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().
bool prefs::get_scroll_when_mouse_outside | ( | bool | def | ) |
Definition at line 1170 of file preferences.cpp.
References preferences_.
Referenced by controller_base::handle_scroll().
bool prefs::get_show_deprecation | ( | bool | def | ) |
Definition at line 1165 of file preferences.cpp.
References preferences_.
|
private |
Definition at line 1947 of file preferences.cpp.
References login(), and utf8::size().
Referenced by build_key(), load_credentials(), login(), and save_credentials().
bool prefs::green_confirm | ( | ) |
Definition at line 1852 of file preferences.cpp.
References preferences_.
bool prefs::is_campaign_completed | ( | const std::string & | campaign_id | ) |
Definition at line 1482 of file preferences.cpp.
References completed_campaigns_.
Referenced by ng::campaign::mark_if_completed(), and gui2::dialogs::campaign_difficulty::pre_show().
bool prefs::is_campaign_completed | ( | const std::string & | campaign_id, |
const std::string & | difficulty_level | ||
) |
Definition at line 1487 of file preferences.cpp.
References completed_campaigns_.
bool prefs::is_friend | ( | const std::string & | nick | ) |
Definition at line 1455 of file preferences.cpp.
References acquaintances_.
Referenced by gui2::chatbox::add_whisper_received(), and parse_should_show_lobby_join().
bool prefs::is_ignored | ( | const std::string & | nick | ) |
Definition at line 1466 of file preferences.cpp.
References acquaintances_.
Referenced by display_chat_manager::add_chat_message(), and gui2::chatbox::process_message().
int prefs::keepalive_timeout | ( | ) |
Definition at line 683 of file preferences.cpp.
References preferences_.
Referenced by wesnothd_connection::handshake().
void prefs::keepalive_timeout | ( | int | seconds | ) |
Definition at line 688 of file preferences.cpp.
References preferences_.
void prefs::load_advanced_prefs | ( | const game_config_view & | gc | ) |
Definition at line 161 of file preferences.cpp.
References advanced_prefs_, game_config_view::child_range(), e, ERR_ADV, and game_config::wesnoth_version.
Referenced by game_config_manager::init_game_config().
|
private |
Definition at line 429 of file preferences.cpp.
References aes_decrypt(), schema_validation::at(), build_key(), clear_credentials(), pref_constants::CREDENTIAL_SEPARATOR, credentials_, data, ERR_CFG, filesystem::file_exists(), filesystem::get_credentials_file(), get_system_username(), filesystem::istream_file(), remember_password(), utils::REMOVE_EMPTY, utils::split(), and unescape().
Referenced by prefs(), reload_preferences(), and set_remember_password().
void prefs::load_hotkeys | ( | ) |
Definition at line 919 of file preferences.cpp.
References hotkey::load_custom_hotkeys(), preferences_, and game_config_view::wrap().
Referenced by game_config_manager::init_game_config().
|
private |
Definition at line 237 of file preferences.cpp.
References _(), config::all_children_view(), config::attribute_range(), c, cfg, config::child_range(), config::clear(), completed_campaigns_, utils::contains(), d, e, encountered_terrains_set_, encountered_units_set_, ERR_CFG, get_child(), filesystem::get_default_prefs_file(), filesystem::get_synced_prefs_file(), filesystem::get_unsynced_prefs_file(), history_map_, filesystem::istream_file(), config::merge_with(), music_volume(), preferences_, io::read(), t_translation::read_list(), set_music_volume(), set_sound_volume(), sound_volume(), utils::split(), utils::split_set(), synced_attributes_, synced_children_, unknown_synced_attributes_, unknown_synced_children_, unknown_unsynced_attributes_, unknown_unsynced_children_, unsynced_attributes_, and unsynced_children_.
Referenced by prefs(), and reload_preferences().
std::string prefs::login | ( | ) |
Definition at line 2220 of file preferences.cpp.
References pref_constants::EMPTY_LOGIN, ERR_CFG, get(), and get_system_username().
Referenced by events::menu_handler::add_chat_message(), display_chat_manager::add_chat_message(), build_key(), gui2::chatbox::chat_input_keypress_callback(), events::console_handler::do_droid(), settings::game_name_default(), gui2::dialogs::mp_join_game::generate_side_list(), get_system_username(), gui2::dialogs::mp_login::mp_login(), ng::side_engine::new_config(), password(), gui2::player_list_helper::player_list_helper(), gui2::chatbox::send_chat_message(), events::menu_handler::send_chat_message(), events::chat_handler::send_chat_room_message(), events::chat_handler::send_whisper(), set_login(), set_password(), gui2::dialogs::mp_join_game::show_flg_select(), and gui2::player_list_helper::update_list().
bool prefs::message_bell | ( | ) |
Definition at line 835 of file preferences.cpp.
References preferences_.
Referenced by do_replay_handle(), and playmp_controller::process_network_data_impl().
bool prefs::message_private | ( | ) |
Definition at line 1788 of file preferences.cpp.
References message_private_on_.
bool prefs::middle_click_scrolls | ( | ) |
Definition at line 899 of file preferences.cpp.
References preferences_.
void prefs::migrate_preferences | ( | const std::string & | prefs_dir | ) |
Definition at line 186 of file preferences.cpp.
References config::attribute_range(), filesystem::copy_file(), filesystem::file_exists(), filesystem::file_modified_time(), get(), filesystem::get_synced_prefs_file(), config::has_attribute(), filesystem::istream_file(), preferences_, io::read(), and write_preferences().
Referenced by gui2::dialogs::migrate_version_selection::post_show().
const std::vector< std::string > & prefs::modifications | ( | bool | mp = true | ) |
Definition at line 1762 of file preferences.cpp.
References mp_modifications_, mp_modifications_initialized_, preferences_, sp_modifications_, sp_modifications_initialized_, and utils::split().
Referenced by gui2::dialogs::mp_create_game::pre_show().
int prefs::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 904 of file preferences.cpp.
References preferences_.
Referenced by controller_base::handle_scroll().
std::string prefs::moved_color | ( | ) |
Definition at line 551 of file preferences.cpp.
References fix_orb_color_name(), game_config::colors::moved_orb_color, and preferences_.
Referenced by orb_status_helper::get_orb_color().
bool prefs::music_on | ( | ) |
Definition at line 863 of file preferences.cpp.
References preferences_.
Referenced by hotkey::command_executor::execute_command_wrap(), gui2::dialogs::music_on(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), and set_ui_sound().
int prefs::music_volume | ( | ) |
Definition at line 717 of file preferences.cpp.
References gui2::dialogs::music_volume(), and preferences_.
Referenced by load_preferences(), gui2::dialogs::music_volume(), and set_music_volume().
std::string prefs::network_host | ( | ) |
Definition at line 1602 of file preferences.cpp.
References builtin_servers_list(), and preferences_.
Referenced by game_launcher::game_launcher(), gui2::dialogs::mp_connect::mp_connect(), and game_launcher::play_multiplayer().
const config & prefs::options | ( | ) |
Definition at line 1636 of file preferences.cpp.
References config::clear(), get_child(), option_values_, and options_initialized_.
bool prefs::parse_should_show_lobby_join | ( | const std::string & | sender, |
const std::string & | message | ||
) |
Definition at line 1493 of file preferences.cpp.
References get_lobby_joins(), is_friend(), pref_constants::show_all, and pref_constants::show_none.
Referenced by display_chat_manager::add_chat_message().
std::string prefs::partial_color | ( | ) |
Definition at line 571 of file preferences.cpp.
References fix_orb_color_name(), game_config::colors::partial_orb_color, and preferences_.
Referenced by orb_status_helper::get_orb_color().
std::string prefs::password | ( | const std::string & | server, |
const std::string & | login | ||
) |
Definition at line 2244 of file preferences.cpp.
References aes_decrypt(), build_key(), credentials_, DBG_CFG, preferences::login_info::key, login(), remember_password(), and utils::trim().
Referenced by addons_client::delete_remote_addon(), and gui2::dialogs::addon_manager::publish_addon().
int prefs::pixel_scale | ( | ) |
Definition at line 642 of file preferences.cpp.
References pref_constants::max_pixel_scale, pref_constants::min_pixel_scale, and preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks(), and video::update_framebuffer().
|
inlinestatic |
Definition at line 229 of file preferences.hpp.
References no_preferences_save.
int prefs::progress_achievement | ( | const std::string & | content_for, |
const std::string & | id, | ||
int | limit = 999999 , |
||
int | max_progress = 999999 , |
||
int | amount = 0 |
||
) |
Increments the achievement's current progress by amount if it hasn't already been completed.
If you only want to check the achievement's current progress, then omit the last three arguments. amount defaults to 0, which will result in the current progress value being returned without being changed (x + 0 == x).
Note that this uses the same [in_progress] as is used for set_sub_achievement().
content_for | The id of the achievement group this achievement is in. |
id | The id for the specific achievement in the achievement group. |
limit | The maximum value that a specific call to this function can increase the achievement progress value. |
max_progress | The value when the achievement is considered completed. |
amount | The amount to progress the achievement. |
Definition at line 1024 of file preferences.cpp.
References achievement(), config::add_child(), config::child_range(), id, and preferences_.
Referenced by game_lua_kernel::intf_progress_achievement().
int prefs::reach_map_border_opacity | ( | ) |
Definition at line 600 of file preferences.cpp.
References preferences_, and game_config::reach_map_border_opacity.
std::string prefs::reach_map_color | ( | ) |
Definition at line 580 of file preferences.cpp.
References fix_orb_color_name(), preferences_, and game_config::colors::reach_map_color.
Referenced by game_display::draw_hex(), and game_display::get_reachmap_images().
std::string prefs::reach_map_enemy_color | ( | ) |
Definition at line 590 of file preferences.cpp.
References fix_orb_color_name(), preferences_, and game_config::colors::reach_map_enemy_color.
Referenced by game_display::get_reachmap_images().
int prefs::reach_map_tint_opacity | ( | ) |
Definition at line 610 of file preferences.cpp.
References preferences_, and game_config::reach_map_tint_opacity.
std::vector< std::string > prefs::recent_files | ( | ) |
Retrieves the list of recently opened files.
Definition at line 1244 of file preferences.cpp.
References do_read_editor_mru().
Referenced by editor::context_manager::expand_load_mru_menu(), and editor::context_manager::load_mru_item().
void prefs::reload_preferences | ( | ) |
Definition at line 214 of file preferences.cpp.
References clear_preferences(), load_credentials(), and load_preferences().
Referenced by gui2::dialogs::migrate_version_selection::post_show().
bool prefs::remember_password | ( | ) |
Definition at line 2204 of file preferences.cpp.
References preferences_.
Referenced by gui2::dialogs::addon_auth::addon_auth(), gui2::dialogs::preferences_dialog::initialize_callbacks(), load_credentials(), gui2::dialogs::mp_login::mp_login(), password(), save_credentials(), and set_password().
bool prefs::remove_acquaintance | ( | const std::string & | nick | ) |
Definition at line 1433 of file preferences.cpp.
References acquaintances_, and i.
Referenced by events::chat_command_handler::do_remove(), and gui2::dialogs::lobby_player_info::remove_from_list_button_callback().
void prefs::remove_game_preset | ( | int | id | ) |
Definition at line 1563 of file preferences.cpp.
References id, preferences_, and config::remove_children().
Referenced by gui2::dialogs::mp_lobby::delete_preset().
point prefs::resolution | ( | ) |
Definition at line 620 of file preferences.cpp.
References pref_constants::def_window_height, pref_constants::def_window_width, pref_constants::min_window_height, pref_constants::min_window_width, draw::point(), and preferences_.
Referenced by video::init_window().
unsigned int prefs::sample_rate | ( | ) |
Definition at line 947 of file preferences.cpp.
References preferences_.
Referenced by save_sample_rate().
compression::format prefs::save_compression_format | ( | ) |
Definition at line 1798 of file preferences.cpp.
References compression::bzip2, compression::gzip, compression::none, and preferences_.
|
private |
Definition at line 457 of file preferences.cpp.
References aes_encrypt(), build_key(), pref_constants::CREDENTIAL_SEPARATOR, credentials_, filesystem::delete_file(), ERR_CFG, ERR_FS, escape(), filesystem::file_exists(), filesystem::get_credentials_file(), get_system_username(), filesystem::ostream_file(), and remember_password().
Referenced by write_preferences().
void prefs::save_hotkeys | ( | ) |
Definition at line 924 of file preferences.cpp.
References preferences_, and hotkey::save_hotkeys().
Referenced by gui2::dialogs::preferences_dialog::post_show().
void prefs::save_sample_rate | ( | const unsigned int | rate | ) |
Definition at line 952 of file preferences.cpp.
References preferences_, sound::reset_sound(), and sample_rate().
void prefs::save_sound_buffer_size | ( | const std::size_t | size | ) |
Definition at line 706 of file preferences.cpp.
References preferences_, sound::reset_sound(), and utf8::size().
int prefs::scroll_speed | ( | ) |
Definition at line 889 of file preferences.cpp.
References preferences_.
Referenced by controller_base::handle_scroll(), gui2::dialogs::preferences_dialog::initialize_callbacks(), events::mouse_handler_base::mouse_wheel(), and display::scroll_to_xy().
void prefs::set_achievement | ( | const std::string & | content_for, |
const std::string & | id | ||
) |
Marks the specified achievement as completed.
content_for | The achievement group the achievement is part of. |
id | The ID of the achievement within the achievement group. |
Definition at line 995 of file preferences.cpp.
References config::add_child(), cfg, config::child_range(), utils::contains(), id, preferences_, and utils::split().
Referenced by game_lua_kernel::intf_set_achievement().
void prefs::set_addon_manager_saved_order_direction | ( | sort_order::type | value | ) |
Definition at line 978 of file preferences.cpp.
References string_enums::enum_base< Definition >::get_string(), and preferences_.
Referenced by gui2::dialogs::addon_manager::on_order_changed(), and gui2::dialogs::addon_manager::order_addons().
void prefs::set_allied_color | ( | const std::string & | color_id | ) |
Definition at line 537 of file preferences.cpp.
References game_config::colors::ally_orb_color, and preferences_.
Referenced by gui2::dialogs::select_orb_colors::post_show().
void prefs::set_bell_volume | ( | int | vol | ) |
Definition at line 752 of file preferences.cpp.
References gui2::dialogs::bell_volume(), bell_volume(), preferences_, and sound::set_bell_volume().
Referenced by gui2::dialogs::set_bell_volume().
void prefs::set_campaign_server | ( | const std::string & | host | ) |
Definition at line 1626 of file preferences.cpp.
References preferences_.
void prefs::set_chat_message_aging | ( | const std::chrono::minutes & | value | ) |
Definition at line 1727 of file preferences.cpp.
References preferences_.
|
private |
Definition at line 498 of file preferences.cpp.
References config::add_child(), config::clear_children(), and preferences_.
Referenced by do_commit_editor_mru(), set_dir_bookmarks(), set_options(), and ~prefs().
void prefs::set_color_cursors | ( | bool | value | ) |
Definition at line 1272 of file preferences.cpp.
References preferences_, and cursor::set().
void prefs::set_countdown_action_bonus | ( | const std::chrono::seconds & | value | ) |
Definition at line 1712 of file preferences.cpp.
References preferences_, and s.
void prefs::set_countdown_init_time | ( | const std::chrono::seconds & | value | ) |
Definition at line 1667 of file preferences.cpp.
References preferences_, and s.
void prefs::set_countdown_reservoir_time | ( | const std::chrono::seconds & | value | ) |
Definition at line 1682 of file preferences.cpp.
References preferences_, and s.
void prefs::set_countdown_turn_bonus | ( | const std::chrono::seconds & | value | ) |
Definition at line 1697 of file preferences.cpp.
References preferences_, and s.
void prefs::set_dir_bookmarks | ( | const config & | cfg | ) |
Definition at line 1175 of file preferences.cpp.
References cfg, and set_child().
void prefs::set_enemy_color | ( | const std::string & | color_id | ) |
Definition at line 547 of file preferences.cpp.
References game_config::colors::enemy_orb_color, and preferences_.
Referenced by gui2::dialogs::select_orb_colors::post_show().
void prefs::set_font_scaling | ( | int | scale | ) |
Definition at line 673 of file preferences.cpp.
References pref_constants::max_font_scaling, pref_constants::min_font_scaling, preferences_, and xbrz::scale().
void prefs::set_lobby_joins | ( | pref_constants::lobby_joins | show | ) |
Definition at line 1534 of file preferences.cpp.
References preferences_, gui2::dialogs::fps::show(), pref_constants::show_all, pref_constants::show_friends, and pref_constants::show_none.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks().
void prefs::set_login | ( | const std::string & | login | ) |
Definition at line 2236 of file preferences.cpp.
References login(), preferences_, and utils::trim().
Referenced by game_launcher::game_launcher(), gui2::dialogs::mp_login::mp_login(), and gui2::dialogs::mp_method_selection::post_show().
void prefs::set_message_private | ( | bool | value | ) |
Definition at line 1793 of file preferences.cpp.
References message_private_on_.
Referenced by gui::floating_textbox::close(), events::menu_handler::shout(), mp::start_local_game(), mp::start_local_game_commandline(), and events::menu_handler::whisper().
void prefs::set_modifications | ( | const std::vector< std::string > & | value, |
bool | mp = true |
||
) |
Definition at line 1777 of file preferences.cpp.
References utils::join(), mp_modifications_initialized_, preferences_, and sp_modifications_initialized_.
Referenced by gui2::dialogs::mp_create_game::post_show(), and gui2::dialogs::campaign_selection::proceed().
void prefs::set_moved_color | ( | const std::string & | color_id | ) |
Definition at line 557 of file preferences.cpp.
References game_config::colors::moved_orb_color, and preferences_.
Referenced by gui2::dialogs::select_orb_colors::post_show().
void prefs::set_mp_server_program_name | ( | const std::string & | path | ) |
Definition at line 1375 of file preferences.cpp.
References game_config::path, preferences_, and config::remove_attribute().
Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().
bool prefs::set_music | ( | bool | ison | ) |
Definition at line 868 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), sound::play_music(), preferences_, sound(), sound::stop_music(), turn_bell(), and ui_sound_on().
Referenced by hotkey::command_executor::execute_command_wrap(), game_launcher::game_launcher(), and gui2::dialogs::set_music().
void prefs::set_music_volume | ( | int | vol | ) |
Definition at line 722 of file preferences.cpp.
References gui2::dialogs::music_volume(), music_volume(), preferences_, and sound::set_music_volume().
Referenced by load_preferences(), and gui2::dialogs::set_music_volume().
void prefs::set_network_host | ( | const std::string & | host | ) |
Definition at line 1612 of file preferences.cpp.
References preferences_.
Referenced by game_launcher::play_multiplayer().
void prefs::set_options | ( | const config & | values | ) |
Definition at line 1656 of file preferences.cpp.
References options_initialized_, set_child(), and utils::views::values.
Referenced by gui2::dialogs::mp_create_game::post_show(), and gui2::dialogs::sp_options_configure::post_show().
void prefs::set_partial_color | ( | const std::string & | color_id | ) |
Definition at line 577 of file preferences.cpp.
References game_config::colors::partial_orb_color, and preferences_.
Referenced by gui2::dialogs::select_orb_colors::post_show().
void prefs::set_password | ( | const std::string & | server, |
const std::string & | login, | ||
const std::string & | key | ||
) |
Definition at line 2268 of file preferences.cpp.
References aes_encrypt(), build_key(), clear_credentials(), credentials_, DBG_CFG, preferences::login_info::key, login(), remember_password(), and utils::trim().
Referenced by addons_client::delete_remote_addon(), game_launcher::game_launcher(), gui2::dialogs::addon_manager::publish_addon(), and gui2::dialogs::mp_login::save_password().
void prefs::set_pixel_scale | ( | const int | scale | ) |
Definition at line 648 of file preferences.cpp.
References pref_constants::max_pixel_scale, pref_constants::min_pixel_scale, preferences_, and xbrz::scale().
Referenced by gui2::dialogs::preferences_dialog::apply_pixel_scale(), and gui2::dialogs::preferences_dialog::initialize_callbacks().
void prefs::set_reach_map_border_opacity | ( | const int | new_opacity | ) |
Definition at line 605 of file preferences.cpp.
References preferences_, and game_config::reach_map_border_opacity.
Referenced by gui2::dialogs::reachmap_options::post_show().
void prefs::set_reach_map_color | ( | const std::string & | color_id | ) |
Definition at line 586 of file preferences.cpp.
References preferences_, and game_config::colors::reach_map_color.
Referenced by gui2::dialogs::reachmap_options::post_show().
void prefs::set_reach_map_enemy_color | ( | const std::string & | color_id | ) |
Definition at line 596 of file preferences.cpp.
References preferences_, and game_config::colors::reach_map_enemy_color.
Referenced by gui2::dialogs::reachmap_options::post_show().
void prefs::set_reach_map_tint_opacity | ( | const int | new_opacity | ) |
Definition at line 615 of file preferences.cpp.
References preferences_, and game_config::reach_map_tint_opacity.
Referenced by gui2::dialogs::reachmap_options::post_show().
void prefs::set_remember_password | ( | bool | remember | ) |
Definition at line 2209 of file preferences.cpp.
References clear_credentials(), load_credentials(), and preferences_.
Referenced by gui2::dialogs::addon_auth::addon_auth(), gui2::dialogs::preferences_dialog::initialize_callbacks(), and gui2::dialogs::mp_login::mp_login().
void prefs::set_resolution | ( | const point & | res | ) |
Definition at line 636 of file preferences.cpp.
References preferences_.
Referenced by game_launcher::game_launcher(), events::pump(), and video::set_resolution().
void prefs::set_scroll_speed | ( | const int | scroll | ) |
Definition at line 894 of file preferences.cpp.
References preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks().
void prefs::set_show_fps | ( | bool | value | ) |
Definition at line 914 of file preferences.cpp.
References fps_.
Referenced by events::console_handler::do_fps(), and game_launcher::game_launcher().
void prefs::set_show_standing_animations | ( | bool | value | ) |
Definition at line 1284 of file preferences.cpp.
References d, display::get_singleton(), and preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks().
bool prefs::set_sound | ( | bool | ison | ) |
Definition at line 845 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), preferences_, gui2::dialogs::sound(), sound(), sound::stop_sound(), turn_bell(), and ui_sound_on().
Referenced by hotkey::command_executor::execute_command_wrap(), game_launcher::game_launcher(), and gui2::dialogs::set_sound().
void prefs::set_sound_volume | ( | int | vol | ) |
Definition at line 737 of file preferences.cpp.
References preferences_, sound::set_sound_volume(), gui2::dialogs::sound_volume(), and sound_volume().
Referenced by load_preferences(), and gui2::dialogs::set_sound_volume().
void prefs::set_sub_achievement | ( | const std::string & | content_for, |
const std::string & | id, | ||
const std::string & | sub_id | ||
) |
Marks the specified sub-achievement as completed.
Note that this uses the same [in_progress] as is used for progress_achievement().
content_for | The achievement group the achievement is part of. |
id | The ID of the achievement within the achievement group. |
sub_id | The ID of the sub-achievement within the achievement. |
Definition at line 1110 of file preferences.cpp.
References achievement(), config::add_child(), config::child_range(), utils::contains(), id, preferences_, and utils::split().
Referenced by game_lua_kernel::intf_set_sub_achievement().
void prefs::set_theme | ( | const std::string & | theme | ) |
Definition at line 1368 of file preferences.cpp.
References preferences_, and theme().
Referenced by gui2::dialogs::preferences_dialog::handle_theme_select(), and show_theme_dialog().
void prefs::set_turbo | ( | bool | ison | ) |
Definition at line 662 of file preferences.cpp.
References preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks(), and play_controller::hotkey_handler::toggle_accelerated_speed().
bool prefs::set_turn_bell | ( | bool | ison | ) |
Definition at line 787 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), preferences_, sound(), sound::stop_bell(), game_config::sounds::turn_bell, turn_bell(), and ui_sound_on().
Referenced by game_launcher::game_launcher(), and gui2::dialogs::set_turn_bell().
bool prefs::set_ui_sound | ( | bool | ison | ) |
Definition at line 816 of file preferences.cpp.
References sound::close_sound(), sound::init_sound(), music_on(), preferences_, sound(), sound::stop_UI_sound(), turn_bell(), and ui_sound_on().
Referenced by game_launcher::game_launcher(), and gui2::dialogs::set_ui_sound().
void prefs::set_ui_volume | ( | int | vol | ) |
Definition at line 772 of file preferences.cpp.
References preferences_, sound::set_UI_volume(), gui2::dialogs::ui_volume(), and ui_volume().
Referenced by gui2::dialogs::set_ui_volume().
void prefs::set_unmoved_color | ( | const std::string & | color_id | ) |
Definition at line 567 of file preferences.cpp.
References preferences_, and game_config::colors::unmoved_orb_color.
Referenced by gui2::dialogs::select_orb_colors::post_show().
void prefs::set_user_servers_list | ( | const std::vector< game_config::server_info > & | value | ) |
Definition at line 1591 of file preferences.cpp.
References config::add_child(), config::clear_children(), and preferences_.
Referenced by gui2::dialogs::mp_connect::on_server_add(), and gui2::dialogs::mp_connect::on_server_delete().
void prefs::set_village_gold | ( | int | value | ) |
Definition at line 1737 of file preferences.cpp.
References preferences_.
void prefs::set_village_support | ( | int | value | ) |
Definition at line 1747 of file preferences.cpp.
References preferences_.
void prefs::set_xp_modifier | ( | int | value | ) |
Definition at line 1757 of file preferences.cpp.
References preferences_.
bool prefs::show_combat | ( | ) |
Definition at line 1631 of file preferences.cpp.
References preferences_.
Referenced by unit_display::unit_attack(), unit_display::unit_die(), unit_display::unit_draw_weapon(), and unit_display::unit_sheath_weapon().
bool prefs::show_fps | ( | ) |
Definition at line 909 of file preferences.cpp.
References fps_.
bool prefs::show_standing_animations | ( | ) |
Definition at line 1279 of file preferences.cpp.
References preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks().
bool prefs::show_theme_dialog | ( | ) |
Definition at line 1293 of file preferences.cpp.
References _(), resources::gamedata, theme::get_basic_theme_info(), display::get_singleton(), gui2::dialogs::theme_list::selected_index(), gui2::dialogs::theme_list::set_selected_index(), display::set_theme(), set_theme(), gui2::dialogs::modal_dialog::show(), gui2::show_transient_message(), and theme().
Referenced by events::console_handler::do_theme().
void prefs::show_wesnothd_server_search | ( | ) |
Definition at line 1327 of file preferences.cpp.
References _(), filesystem::directory_name(), filename, filesystem::get_exe_dir(), get_mp_server_program_name(), filesystem::get_wesnothd_name(), filesystem::is_directory(), wfl::msg(), game_config::path, gui2::dialogs::file_dialog::set_filename(), gui2::dialogs::file_dialog::set_message(), set_mp_server_program_name(), gui2::dialogs::file_dialog::set_ok_label(), gui2::dialogs::file_dialog::set_path(), gui2::dialogs::file_dialog::set_read_only(), gui2::dialogs::file_dialog::set_title(), and VGETTEXT.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks(), and game_launcher::play_multiplayer().
bool prefs::sound | ( | ) |
Definition at line 840 of file preferences.cpp.
References preferences_, and gui2::dialogs::sound().
Referenced by hotkey::command_executor::execute_command_wrap(), sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), set_ui_sound(), and gui2::dialogs::sound().
std::size_t prefs::sound_buffer_size | ( | ) |
Definition at line 693 of file preferences.cpp.
References preferences_.
Referenced by sound::driver_status::query().
int prefs::sound_volume | ( | ) |
Definition at line 732 of file preferences.cpp.
References preferences_, and gui2::dialogs::sound_volume().
Referenced by impl_audio_get(), impl_audio_set(), load_preferences(), set_sound_volume(), and gui2::dialogs::sound_volume().
bool prefs::sub_achievement | ( | const std::string & | content_for, |
const std::string & | id, | ||
const std::string & | sub_id | ||
) |
content_for | The achievement group the achievement is part of. |
id | The ID of the achievement within the achievement group. |
sub_id | The ID of the sub-achievement within the achievement. |
Definition at line 1085 of file preferences.cpp.
References achievement(), config::child_range(), utils::contains(), preferences_, and utils::split().
std::string prefs::theme | ( | ) |
Definition at line 1353 of file preferences.cpp.
References video::headless(), and preferences_.
Referenced by set_theme(), and show_theme_dialog().
bool prefs::turbo | ( | ) |
Definition at line 653 of file preferences.cpp.
References video::headless(), and preferences_.
Referenced by gui2::dialogs::preferences_dialog::initialize_callbacks(), and display::turbo_speed().
bool prefs::turn_bell | ( | ) |
Definition at line 782 of file preferences.cpp.
References preferences_, and game_config::sounds::turn_bell.
Referenced by sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), set_ui_sound(), and gui2::dialogs::turn_bell().
bool prefs::ui_sound_on | ( | ) |
Definition at line 807 of file preferences.cpp.
References config::has_attribute(), and preferences_.
Referenced by sound::reset_sound(), set_music(), set_sound(), set_turn_bell(), set_ui_sound(), and gui2::dialogs::ui_sound_on().
int prefs::ui_volume | ( | ) |
Definition at line 763 of file preferences.cpp.
References config::has_attribute(), preferences_, and gui2::dialogs::ui_volume().
Referenced by set_ui_volume(), and gui2::dialogs::ui_volume().
|
private |
std::string prefs::unmoved_color | ( | ) |
Definition at line 561 of file preferences.cpp.
References fix_orb_color_name(), preferences_, and game_config::colors::unmoved_orb_color.
Referenced by orb_status_helper::get_orb_color().
bool prefs::use_color_cursors | ( | ) |
Definition at line 1267 of file preferences.cpp.
References preferences_.
bool prefs::use_twelve_hour_clock_format | ( | ) |
Definition at line 968 of file preferences.cpp.
References preferences_.
Referenced by gui2::dialogs::format_addon_time(), savegame::save_info::format_time_local(), utils::format_time_summary(), get_chat_timestamp(), and REPORT_GENERATOR().
std::vector< game_config::server_info > prefs::user_servers_list | ( | ) |
Definition at line 1578 of file preferences.cpp.
References config::child_range(), and preferences_.
int prefs::village_gold | ( | ) |
Definition at line 1732 of file preferences.cpp.
References settings::get_village_gold(), and preferences_.
Referenced by settings::village_gold_default().
int prefs::village_support | ( | ) |
Definition at line 1742 of file preferences.cpp.
References settings::get_village_support(), and preferences_.
Referenced by settings::village_support_default().
void prefs::write_preferences | ( | ) |
Definition at line 339 of file preferences.cpp.
References config::add_child(), config::child_range(), ERR_FS, filesystem::file_exists(), filesystem::get_synced_prefs_file(), filesystem::get_unsynced_prefs_file(), config::has_attribute(), filesystem::ostream_file(), preferences_, save_credentials(), synced_attributes_, synced_children_, unknown_synced_attributes_, unknown_synced_children_, unknown_unsynced_attributes_, unknown_unsynced_children_, unsynced_attributes_, unsynced_children_, and io::write().
Referenced by events::console_handler::do_set_alias(), migrate_preferences(), gui2::dialogs::preferences_dialog::post_show(), and ~prefs().
int prefs::xp_modifier | ( | ) |
Definition at line 1752 of file preferences.cpp.
References settings::get_xp_modifier(), and preferences_.
Referenced by settings::xp_modifier_default().
bool prefs::yellow_confirm | ( | ) |
Definition at line 1858 of file preferences.cpp.
References preferences_.
|
friend |
The __index metamethod.
Parameter 1: the preference table. Parameter 2: preference name, must be a string. Returns: preference value. If there isn't such a preference, returns nil.
Definition at line 29 of file lua_preferences.cpp.
|
friend |
The __newindex metamethod.
Parameter 1: the preference table. Parameter 2: preference name, must be a string. Parameter 3: preference value. Returns nothing.
Definition at line 43 of file lua_preferences.cpp.
|
friend |
Definition at line 194 of file preferences.hpp.
|
private |
Definition at line 635 of file preferences.hpp.
Referenced by add_acquaintance(), get_acquaintances(), get_acquaintances_nice(), get_ignored_delim(), is_friend(), is_ignored(), prefs(), remove_acquaintance(), and ~prefs().
|
private |
Definition at line 644 of file preferences.hpp.
Referenced by get_advanced_preferences(), and load_advanced_prefs().
|
private |
Definition at line 631 of file preferences.hpp.
Referenced by add_completed_campaign(), is_campaign_completed(), load_preferences(), and ~prefs().
|
private |
Definition at line 643 of file preferences.hpp.
Referenced by clear_credentials(), load_credentials(), password(), save_credentials(), and set_password().
|
private |
Definition at line 633 of file preferences.hpp.
Referenced by encountered_terrains(), load_preferences(), and ~prefs().
|
private |
Definition at line 632 of file preferences.hpp.
Referenced by encounter_recallable_units(), encounter_recruitable_units(), encounter_start_units(), encountered_units(), load_preferences(), and ~prefs().
|
private |
Definition at line 630 of file preferences.hpp.
Referenced by set_show_fps(), and show_fps().
|
private |
Definition at line 634 of file preferences.hpp.
Referenced by get_history(), load_preferences(), and ~prefs().
|
private |
Definition at line 642 of file preferences.hpp.
Referenced by message_private(), and set_message_private().
|
private |
Definition at line 638 of file preferences.hpp.
Referenced by modifications().
|
private |
Definition at line 639 of file preferences.hpp.
Referenced by modifications(), and set_modifications().
|
inlinestaticprivate |
Definition at line 627 of file preferences.hpp.
Referenced by disable_preferences_save(), preferences_save(), and ~prefs().
|
private |
Definition at line 636 of file preferences.hpp.
Referenced by options().
|
private |
Definition at line 637 of file preferences.hpp.
Referenced by options(), and set_options().
|
private |
Definition at line 629 of file preferences.hpp.
Referenced by achievement(), add_alias(), add_game_preset(), addon_manager_saved_order_direction(), all_attributes(), allied_color(), auto_open_whisper_windows(), bell_volume(), campaign_server(), chat_message_aging(), clear_countdown_action_bonus(), clear_countdown_init_time(), clear_countdown_reservoir_time(), clear_countdown_turn_bonus(), clear_hotkeys(), clear_mp_alert_prefs(), clear_preferences(), confirm_load_save_from_different_version(), confirm_no_moves(), countdown_action_bonus(), countdown_init_time(), countdown_reservoir_time(), countdown_turn_bonus(), editor_mru_limit(), enemy_color(), font_scaling(), get(), preferences_dialog_friend::get(), get_as_attribute(), get_child(), get_game_preset(), get_game_presets(), get_lobby_joins(), get_mp_server_program_name(), get_scroll_when_mouse_outside(), get_show_deprecation(), green_confirm(), keepalive_timeout(), load_hotkeys(), load_preferences(), message_bell(), middle_click_scrolls(), migrate_preferences(), modifications(), mouse_scroll_threshold(), moved_color(), music_on(), music_volume(), network_host(), partial_color(), pixel_scale(), prefs(), progress_achievement(), reach_map_border_opacity(), reach_map_color(), reach_map_enemy_color(), reach_map_tint_opacity(), remember_password(), remove_game_preset(), resolution(), sample_rate(), save_compression_format(), save_hotkeys(), save_sample_rate(), save_sound_buffer_size(), scroll_speed(), preferences_dialog_friend::set(), set_achievement(), set_addon_manager_saved_order_direction(), set_allied_color(), set_bell_volume(), set_campaign_server(), set_chat_message_aging(), set_child(), set_color_cursors(), set_countdown_action_bonus(), set_countdown_init_time(), set_countdown_reservoir_time(), set_countdown_turn_bonus(), set_enemy_color(), set_font_scaling(), set_lobby_joins(), set_login(), set_modifications(), set_moved_color(), set_mp_server_program_name(), set_music(), set_music_volume(), set_network_host(), set_partial_color(), set_pixel_scale(), set_reach_map_border_opacity(), set_reach_map_color(), set_reach_map_enemy_color(), set_reach_map_tint_opacity(), set_remember_password(), set_resolution(), set_scroll_speed(), set_show_standing_animations(), set_sound(), set_sound_volume(), set_sub_achievement(), set_theme(), set_turbo(), set_turn_bell(), set_ui_sound(), set_ui_volume(), set_unmoved_color(), set_user_servers_list(), set_village_gold(), set_village_support(), set_xp_modifier(), show_combat(), show_standing_animations(), sound(), sound_buffer_size(), sound_volume(), sub_achievement(), theme(), turbo(), turn_bell(), ui_sound_on(), ui_volume(), unmoved_color(), use_color_cursors(), use_twelve_hour_clock_format(), user_servers_list(), village_gold(), village_support(), write_preferences(), xp_modifier(), yellow_confirm(), and ~prefs().
|
private |
Definition at line 640 of file preferences.hpp.
Referenced by modifications().
|
private |
Definition at line 641 of file preferences.hpp.
Referenced by modifications(), and set_modifications().
|
staticconstexprprivate |
Definition at line 692 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
staticconstexprprivate |
Definition at line 843 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
private |
Definition at line 686 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
private |
Definition at line 688 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
private |
Definition at line 687 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
private |
Definition at line 689 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
staticconstexprprivate |
Definition at line 852 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().
|
staticconstexprprivate |
Definition at line 875 of file preferences.hpp.
Referenced by load_preferences(), and write_preferences().