The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
about Namespace Reference

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::stringget_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
 

Detailed Description

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.

Function Documentation

static void about::add_lines ( std::vector< std::string > &  res,
config const &  c,
bool  split_multiline_headers 
)
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().

void about::set_about ( const config cfg)
void about::show_about ( CVideo video,
const std::string campaign 
)

Variable Documentation

config about::about_list = config()
static

Definition at line 57 of file about.cpp.

std::map<std::string , std::string> about::images
static

Definition at line 58 of file about.cpp.

Referenced by terrain_builder::tile::clear(), and terrain_builder::tile::rebuild_cache().

std::string about::images_default
static

Definition at line 59 of file about.cpp.