Display credits about all contributors. More...
Functions | |
static void | add_lines (std::vector< std::string > &res, config const &c, bool split_multiline_headers) |
Given a vector of strings, and a config representing an [about] section, add all the credits lines from the about section to the list of strings. More... | |
std::vector< std::string > | get_text (const std::string &campaign, bool split_multiline_headers) |
void | set_about (const config &cfg) |
void | show_about (CVideo &video, const std::string &campaign) |
Show credits with list of contributors. More... | |
Variables | |
static config | about_list = config() |
static std::map< std::string, std::string > | images |
static std::string | images_default |
Display credits about all contributors.
This module is used from the startup screen.
When show_about() is called, a list of contributors to the game will be presented to the user.
|
static |
Given a vector of strings, and a config representing an [about] section, add all the credits lines from the about section to the list of strings.
Definition at line 65 of file about.cpp.
References config::child_range(), translation::gettext(), and utils::split().
Referenced by get_text().
std::vector< std::string > about::get_text | ( | const std::string & | campaign, |
bool | split_multiline_headers | ||
) |
Definition at line 110 of file about.cpp.
References add_lines(), and config::child_range().
Referenced by help::generate_about_text(), and show_about().
Definition at line 132 of file about.cpp.
References config::add_child(), config::child_range(), config::clear(), translation::gettext(), and utils::split().
Referenced by game_config_manager::init_game_config().
void about::show_about | ( | CVideo & | video, |
const std::string & | campaign | ||
) |
Show credits with list of contributors.
Names of people are shown scrolling up like in movie-credits.
Uses map from wesnoth or campaign as background.
Definition at line 208 of file about.cpp.
References _(), create_compatible_surface(), sdl::create_rect(), CVideo::delay(), gui::dialog_frame::draw_background(), gui::dialog_frame::draw_border(), font::draw_text(), CVideo::flip(), game_config::images::game_title_background, image::get_image(), get_text(), CVideo::getSurface(), i, gui::dialog_frame::dimension_measurements::interior, font::LARGE_TEXT, gui::dialog_frame::layout(), font::NORMAL_COLOR, utils::parenthetical_split(), gui::button::pressed(), events::pump(), events::raise_draw_event(), events::raise_process_event(), scale_surface(), resources::screen, preferences::scroll_speed(), sdl_blit(), SDL_SetAlpha(), gui::widget::set_location(), font::SIZE_XLARGE, font::SMALL_TEXT, gui::dialog_frame::titlescreen_style, update_rect(), cursor::WAIT, and gui::widget::width().
Referenced by do_gameloop(), and game_launcher::launch_game().
|
static |
Definition at line 58 of file about.cpp.
Referenced by terrain_builder::tile::clear(), and terrain_builder::tile::rebuild_cache().
|
static |