15 #define GETTEXT_DOMAIN "wesnoth-lib" 109 set(
"unit_standing_animations", value);
112 d->reset_standing_animations();
120 if (themes.empty()) {
122 _(
"No known themes. Try changing from within an existing game."));
129 for (std::size_t k = 0; k < themes.size(); ++k) {
153 const std::string filename =
"wesnothd";
155 const std::string filename =
"wesnothd.exe";
164 "The <b>$filename</b> server application provides multiplayer server functionality and is required for hosting local network games. It will normally be found in the same folder as the game executable.", {{
"filename", filename}});
play_controller * controller
void set_turbo(bool ison)
void _set_turbo(bool ison)
Dialog for selecting a GUI theme.
void _set_grid(bool ison)
void set_preference_display_settings()
static display * get_singleton()
Returns the display object if a display object exists.
void set_show_standing_animations(bool value)
void set(CURSOR_TYPE type)
Use the default parameter to reset cursors.
void set_grid(const bool grid)
Determines whether a grid should be overlayed on the game board.
file_dialog & set_path(const std::string &value)
Sets the initial file selection.
void _set_color_cursors(bool value)
void set_turbo(const bool turbo)
Set/Get whether 'turbo' mode is on.
file_dialog & set_ok_label(const std::string &value)
Sets the OK button label.
void set_idle_anim_rate(int rate)
void show_wesnothd_server_search()
void show_transient_message(const std::string &title, const std::string &message, const std::string &image, const bool message_use_markup, const bool title_use_markup, const bool restore_background)
Shows a transient message to the user.
void save_turbo_speed(const double speed)
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
static std::string _(const char *str)
bool show(const unsigned auto_close_time=0)
Shows the window.
std::string path() const
Gets the current file selection.
void set_mp_server_program_name(const std::string &path)
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
static game_config_manager * get()
file_dialog & set_read_only(bool value)
Whether to provide user interface elements for manipulating existing objects.
std::string get(const std::string &key)
void set_idle_anim_rate(int rate)
void set_theme(const std::string &theme)
int selected_index() const
Returns the selected item index after displaying.
void set_turbo_speed(double speed)
file_dialog & set_filename(const std::string &value)
Sets the initial file name input but not the path.
void set_idle_anim(bool ison)
bool is_directory(const std::string &fname)
Returns true if the given file is a directory.
Modify, read and display user preferences.
bool show_standing_animations()
void set_color_cursors(bool value)
void _set_idle_anim(const bool ison)
std::string get_exe_dir()
std::string get_mp_server_program_name()
file_dialog & set_message(const std::string &value)
Sets the current dialog instructions/message text.
static std::vector< theme_info > get_known_themes()
Game configuration data as global variables.
void set_turbo_speed(const double speed)
Declarations for File-IO.
void set_idle_anim(bool ison)
control unit idle animations and their frequency
Standard logging facilities (interface).
void _set_idle_anim_rate(const int rate)
std::string directory_name(const std::string &file)
Returns the directory name of a file, with filename stripped.
void set_theme(config theme_cfg)
file_dialog & set_title(const std::string &value)
Sets the current dialog title text.