Display credits about all contributors. More...
Classes | |
struct | credits_group |
Typedefs | |
using | credits_data = std::vector< credits_group > |
Functions | |
const credits_data & | get_credits_data () |
Gets all credits data. More... | |
utils::optional< credits_data::const_iterator > | get_campaign_credits (const std::string &campaign) |
Gets credits for a given campaign. More... | |
std::vector< std::string > | get_background_images (const std::string &campaign) |
Gets credit background images for a given campaign. More... | |
void | set_about (const game_config_view &cfg) |
Regenerates the credits data. More... | |
Display credits about all contributors.
using about::credits_data = typedef std::vector<credits_group> |
std::vector< std::string > about::get_background_images | ( | const std::string & | campaign | ) |
Gets credit background images for a given campaign.
Definition at line 106 of file about.cpp.
Referenced by gui2::dialogs::end_credits::pre_show().
utils::optional< credits_data::const_iterator > about::get_campaign_credits | ( | const std::string & | campaign | ) |
Gets credits for a given campaign.
Returns a null optional if that campaign has no credits.
Definition at line 99 of file about.cpp.
Referenced by gui2::dialogs::outro::outro().
const credits_data & about::get_credits_data | ( | ) |
Gets all credits data.
Definition at line 94 of file about.cpp.
Referenced by gui2::dialogs::end_credits::pre_show().
void about::set_about | ( | const game_config_view & | cfg | ) |
Regenerates the credits data.
Definition at line 119 of file about.cpp.
References config::add_child(), game_config_view::child_range(), and config::empty().
Referenced by game_config_manager::init_game_config().