Functions | |
static void | add_lines (std::vector< std::string > &res, config const &c) |
std::vector< std::string > | get_text (std::string campaign) |
void | set_about (const config &cfg) |
void | show_about (display &disp, std::string campaign) |
Show credits with list of contributors. | |
Variables | |
static config | about_list = config() |
static std::map< std::string, std::string > | images |
static std::string | images_default |
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 void about::add_lines | ( | std::vector< std::string > & | res, | |
config const & | c | |||
) | [static] |
Definition at line 44 of file about.cpp.
References config::get_children(), N_, and utils::split().
Referenced by get_text().
std::vector< std::string > about::get_text | ( | std::string | campaign | ) |
Definition at line 74 of file about.cpp.
References about_list, add_lines(), and config::get_children().
Referenced by help::generate_about_text(), and show_about().
void about::set_about | ( | const config & | cfg | ) |
Definition at line 93 of file about.cpp.
References about_list, config::add_child(), config::get_children(), images, images_default, utils::split(), and text.
void about::show_about | ( | display & | disp, | |
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 154 of file about.cpp.
References _, display::delay(), draw_solid_tinted_rectangle(), font::draw_text(), display::flip(), game_config::game_title, image::get_image(), get_text(), CVideo::getSurface(), CVideo::getx(), CVideo::gety(), display::h(), images, images_default, font::LARGE_TEXT, cursor::NORMAL, font::NORMAL_COLOUR, gui::button::pressed(), events::pump(), events::raise_draw_event(), events::raise_process_event(), rect, scale_surface(), screen_area(), preferences::scroll_speed(), cursor::set(), gui::widget::set_dirty(), gui::widget::set_location(), gui::widget::set_volatile(), font::SIZE_XLARGE, font::SMALL_TEXT, utils::split(), utils::STRIP_SPACES, text, gui::dialog_frame::titlescreen_style, update_rect(), update_whole_screen(), display::video(), display::w(), cursor::WAIT, and gui::widget::width().
Referenced by play_game().
config about::about_list = config() [static] |
std::map<std::string , std::string> about::images [static] |
Definition at line 39 of file about.cpp.
Referenced by terrain_builder::add_constraints(), set_about(), show_about(), and show_intro_part().
std::string about::images_default [static] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |