21 #define GETTEXT_DOMAIN "wesnoth-help"
43 #define WRN_DP LOG_STREAM(warn, log_display)
46 #define ERR_HELP LOG_STREAM(err, log_help)
72 std::string var_id =
t.variation_id();
74 var_id =
t.variation_name();
76 bool hide_help =
t.hide_help();
77 bool use_variation =
false;
172 gui2::dialogs::help_browser::display(toplevel_sec, show_topic);
static game_config_manager * get()
A class grating read only view to a vector of config objects, viewed as one config with all children ...
std::set< t_translation::terrain_code > & encountered_terrains()
std::set< std::string > & encountered_units()
const unit_type * find(const std::string &key, unit_type::BUILD_STATUS status=unit_type::FULL) const
Finds a unit_type by its id() and makes sure it is built to the specified level.
void build_all(unit_type::BUILD_STATUS status)
Makes sure the all unit_types are built to the specified level.
A single unit type that the player may recruit.
This class represents a single unit of a specific type.
Definitions for the interface to Wesnoth Markup Language (WML).
const unit_type & type() const
This unit's type, accounting for gender and variation.
static lg::log_domain log_display("display")
static lg::log_domain log_help("help")
Standard logging facilities (interface).
Game configuration data as global variables.
std::string hidden_symbol(bool hidden)
std::unique_ptr< help_manager > ensure_cache_lifecycle()
Helper function for any of the show_help functions to control the cache's lifecycle; can also be used...
void show_help(const std::string &show_topic)
Open the help browser, show topic with id show_topic.
int last_num_encountered_units
const std::string unit_prefix
std::string get_unit_type_help_id(const unit_type &t)
Given a unit type, find the corresponding help topic's id.
const std::string variation_prefix
void show_terrain_description(const terrain_type &t)
void show_with_toplevel(const section &toplevel, const std::string &show_topic="")
Open a help dialog using a specified toplevel.
void generate_contents()
Generate the help contents from the configurations given to the manager.
const std::string terrain_prefix
boost::tribool last_debug_state
help::section default_toplevel
void show_unit_description(const unit &u)
const game_config_view * game_cfg
int last_num_encountered_terrains
help::section hidden_sections
This file contains the settings handling of the widget library.
help_manager(const game_config_view *game_config)
A section contains topics and sections along with title and ID.
unit_type_data unit_types