49 void set(
const std::string& key,
const std::string &value);
50 void set(
const std::string& key,
char const *value);
51 void set(
const std::string& key,
bool value);
52 void set(
const std::string& key,
int value);
54 void clear(
const std::string& key);
57 std::string
get(
const std::string& key);
58 std::string
get(
const std::string& key,
const std::string& def);
59 bool get(
const std::string& key,
bool def);
61 void erase(
const std::string& key);
163 void add_alias(
const std::string& alias,
const std::string& command);
275 bool achievement(
const std::string& content_for,
const std::string&
id);
282 void set_achievement(
const std::string& content_for,
const std::string&
id);
298 int progress_achievement(
const std::string& content_for,
const std::string&
id,
int limit = 999999,
int max_progress = 999999,
int amount = 0);
306 bool sub_achievement(
const std::string& content_for,
const std::string&
id,
const std::string& sub_id);
317 void set_sub_achievement(
const std::string& content_for,
const std::string&
id,
const std::string& sub_id);
Variant for storing WML attributes.
A config object defines a single node in a WML file, with access to child nodes.
Modify, read and display user preferences.
void set_achievement(const std::string &content_for, const std::string &id)
Marks the specified achievement as completed.
bool has_mp_alert_option(const std::string &id, const std::string &type)
void set_scroll_speed(const int new_speed)
void set_show_disengaged_orb(bool show_orb)
bool stop_music_in_background()
const int max_window_height
const int def_window_width
std::size_t sound_buffer_size()
void set_resolution(const point &res)
void disable_preferences_save()
void set_turbo(bool ison)
bool get_show_deprecation(bool def)
void set_allied_color(const std::string &color_id)
void set_addon_manager_saved_order_direction(sort_order::type value)
bool have_setting(const std::string &key)
void set_music_volume(int vol)
void set_show_partial_orb(bool show_orb)
void set_idle_anim(const bool ison)
bool minimap_movement_coding()
void set_maximized(bool ison)
void clear(const std::string &key)
void set_core_id(const std::string &core_id)
bool set_turn_bell(bool ison)
void set_mp_alert_option(const std::string &id, const std::string &type, bool value)
void set_show_enemy_orb(bool show_orb)
void set_sound_volume(int vol)
sort_order::type addon_manager_saved_order_direction()
void set_dir_bookmarks(const config &cfg)
void set_gui_theme(const std::string &s)
void save_sound_buffer_size(const std::size_t size)
const int min_pixel_scale
bool set_sound(bool ison)
bool use_twelve_hour_clock_format()
bool minimap_draw_villages()
void toggle_minimap_draw_villages()
int font_scaled(int size)
std::string moved_color()
void set_bell_volume(int vol)
void set_damage_prediction_allow_monte_carlo_simulation(bool value)
void set_turbo_speed(const double speed)
void set_draw_delay(int value)
void set(const std::string &key, bool value)
bool minimap_terrain_coding()
std::string last_cache_cleared_version()
const int max_window_width
bool damage_prediction_allow_monte_carlo_simulation()
void set_unmoved_color(const std::string &color_id)
void set_fullscreen(bool ison)
void set_show_fps(bool value)
int mouse_scroll_threshold()
Gets the threshold for when to scroll.
void set_addon_manager_saved_order_name(const std::string &value)
std::string addon_manager_saved_order_name()
void set_stop_music_in_background(bool ison)
bool minimap_draw_terrain()
optional_const_config get_alias()
std::string editor_chosen_addon()
std::string selected_achievement_group()
void set_animate_water(bool value)
const int max_font_scaling
void set_vsync(bool ison)
const int min_font_scaling
std::string partial_color()
const int def_window_height
config::attribute_value get_as_attribute(const std::string &key)
void toggle_minimap_draw_units()
void set_font_scaling(int scale)
bool mouse_scroll_enabled()
bool set_music(bool ison)
void enable_mouse_scroll(bool value)
void set_pixel_scale(const int scale)
bool show_status_on_ally_orb()
void set_show_ally_orb(bool show_orb)
std::string enemy_color()
void add_alias(const std::string &alias, const std::string &command)
void set_disable_auto_moves(bool value)
std::string allied_color()
void set_language(const std::string &s)
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.
bool disable_auto_moves()
int progress_achievement(const std::string &content_for, const std::string &id, int limit, int max_progress, int amount)
Increments the achievement's current progress by amount if it hasn't already been completed.
void toggle_minimap_terrain_coding()
bool mp_alert_option(const std::string &id, const std::string &type, bool def)
void set_UI_volume(int vol)
optional_const_config get_child(const std::string &key)
void save_sample_rate(const unsigned int rate)
unsigned int sample_rate()
std::string unmoved_color()
void set_auto_pixel_scale(bool choice)
const int max_pixel_scale
const int min_window_height
void set_child(const std::string &key, const config &val)
bool set_UI_sound(bool ison)
void set_last_cache_cleared_version(const std::string &version)
void set_tile_size(const unsigned int size)
void set_ellipses(bool ison)
void set_editor_chosen_addon(const std::string &addon_id)
bool confirm_load_save_from_different_version()
void set_selected_achievement_group(const std::string &content_for)
void set_enemy_color(const std::string &color_id)
void set_moved_color(const std::string &color_id)
bool minimap_draw_units()
const int min_window_width
void set_animate_map(bool value)
bool middle_click_scrolls()
void toggle_minimap_draw_terrain()
std::string get(const std::string &key)
void set_show_status_on_ally_orb(bool show_orb)
void set_idle_anim_rate(int rate)
void set_show_moved_orb(bool show_orb)
void erase(const std::string &key)
void set_show_unmoved_orb(bool show_orb)
bool achievement(const std::string &content_for, const std::string &id)
optional_const_config dir_bookmarks()
bool show_disengaged_orb()
void toggle_minimap_movement_coding()
void set_scroll_to_action(bool ison)
bool get_scroll_when_mouse_outside(bool def)
void set_use_twelve_hour_clock_format(bool value)
void set_partial_color(const std::string &color_id)
bool sub_achievement(const std::string &content_for, const std::string &id, const std::string &sub_id)
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
void scale(size_t factor, const uint32_t *src, uint32_t *trg, int srcWidth, int srcHeight, const ScalerCfg &cfg=ScalerCfg(), int yFirst=0, int yLast=std::numeric_limits< int >::max())
static map_location::DIRECTION s