16 #define GETTEXT_DOMAIN "wesnoth-lib"
58 set(
"unit_standing_animations", value);
61 d->reset_standing_animations();
71 _(
"No known themes. Try changing from within an existing game."));
78 for (std::size_t k = 0; k < themes.size(); ++k) {
102 const std::string filename =
"wesnothd";
104 const std::string filename =
"wesnothd.exe";
113 "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}});
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
void set_theme(const std::string &new_theme)
static display * get_singleton()
Returns the display object if a display object exists.
file_dialog & set_ok_label(const std::string &value)
Sets the OK button label.
file_dialog & set_path(const std::string &value)
Sets the initial file selection.
file_dialog & set_title(const std::string &value)
Sets the current dialog title text.
file_dialog & set_read_only(bool value)
Whether to provide user interface elements for manipulating existing objects.
file_dialog & set_filename(const std::string &value)
Sets the initial file name input but not the path.
file_dialog & set_message(const std::string &value)
Sets the current dialog instructions/message text.
bool show(const unsigned auto_close_time=0)
Shows the window.
Dialog for selecting a GUI theme.
int selected_index() const
Returns the selected item index after displaying.
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
static std::vector< theme_info > get_basic_theme_info(bool include_hidden=false)
Returns minimal info about saved themes, optionally including hidden ones.
Declarations for File-IO.
static std::string _(const char *str)
Standard logging facilities (interface).
void set(CURSOR_TYPE type)
Use the default parameter to reset cursors.
std::string get_exe_dir()
bool is_directory(const std::string &fname)
Returns true if the given file is a directory.
std::string directory_name(const std::string &file)
Returns the directory name of a file, with filename stripped.
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)
Shows a transient message to the user.
Modify, read and display user preferences.
std::string get_mp_server_program_name()
void set_mp_server_program_name(const std::string &path)
void set(const std::string &key, bool value)
bool show_standing_animations()
void set_theme(const std::string &theme)
void set_color_cursors(bool value)
void set_show_standing_animations(bool value)
std::string get(const std::string &key)
void _set_color_cursors(bool value)
void show_wesnothd_server_search()
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")