The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
gui2::settings Namespace Reference

This namespace contains the 'global' settings. More...

Functions

std::vector< game_tipget_tips ()
 

Variables

unsigned screen_width = 0
 The screen resolution should be available for all widgets since their drawing method will depend on it. More...
 
unsigned screen_height = 0
 
unsigned gamemap_x_offset = 0
 The offset between the left edge of the screen and the gamemap. More...
 
unsigned gamemap_width = 0
 The size of the map area, if not available equal to the screen size. More...
 
unsigned gamemap_height = 0
 
unsigned popup_show_delay = 0
 These are copied from the active gui. More...
 
unsigned popup_show_time = 0
 
unsigned help_show_time = 0
 
unsigned double_click_time = 0
 
unsigned repeat_button_repeat_time = 0
 
std::string sound_button_click = ""
 
std::string sound_toggle_button_click = ""
 
std::string sound_toggle_panel_click = ""
 
std::string sound_slider_adjust = ""
 
t_string has_helptip_message
 
static std::vector< game_tiptips
 

Detailed Description

This namespace contains the 'global' settings.

Function Documentation

std::vector< game_tip > gui2::settings::get_tips ( )

Definition at line 62 of file settings.cpp.

References gui2::tip_of_the_day::shuffle().

Referenced by gui2::dialogs::title_screen::pre_show().

Variable Documentation

unsigned gui2::settings::double_click_time = 0
unsigned gui2::settings::gamemap_height = 0
unsigned gui2::settings::gamemap_width = 0

The size of the map area, if not available equal to the screen size.

Definition at line 44 of file settings.cpp.

Referenced by gui2::get_screen_size_variables(), gui2::dialogs::mp_lobby::show_preferences_button_callback(), gui2::window::signal_handler_sdl_video_resize(), and gui2::window::update_screen_size().

unsigned gui2::settings::gamemap_x_offset = 0

The offset between the left edge of the screen and the gamemap.

Definition at line 42 of file settings.cpp.

Referenced by gui2::get_screen_size_variables(), and gui2::window::update_screen_size().

t_string gui2::settings::has_helptip_message
unsigned gui2::settings::help_show_time = 0

Definition at line 49 of file settings.cpp.

Referenced by gui2::gui_definition::activate().

unsigned gui2::settings::popup_show_delay = 0

These are copied from the active gui.

Definition at line 47 of file settings.cpp.

Referenced by gui2::gui_definition::activate().

unsigned gui2::settings::popup_show_time = 0

Definition at line 48 of file settings.cpp.

Referenced by gui2::gui_definition::activate().

unsigned gui2::settings::repeat_button_repeat_time = 0
unsigned gui2::settings::screen_height = 0
unsigned gui2::settings::screen_width = 0
std::string gui2::settings::sound_button_click = ""
std::string gui2::settings::sound_slider_adjust = ""
std::string gui2::settings::sound_toggle_button_click = ""
std::string gui2::settings::sound_toggle_panel_click = ""
std::vector<game_tip> gui2::settings::tips
static