22 #include <boost/dynamic_bitset.hpp>
97 virtual const std::string&
window_id()
const override;
A config object defines a single node in a WML file, with access to child nodes.
This shows the dialog which allows the user to choose which campaign to play.
void toggle_sorting_selection(CAMPAIGN_ORDER order)
RNG_MODE rng_mode_
whether the player checked the "Deterministic" checkbox.
CAMPAIGN_ORDER current_sorting_
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
void difficulty_selected()
Called when the difficulty selection changes.
int choice_
The chosen campaign.
std::vector< std::string > mod_ids_
std::vector< std::string > difficulties_
const std::string & get_difficulty() const
RNG_MODE
RNG mode selection values.
static const std::string missing_campaign_
boost::dynamic_bitset mod_states_
std::string current_difficulty_
void sort_campaigns(CAMPAIGN_ORDER order, bool ascending)
bool currently_sorted_asc_
campaign_selection(ng::create_engine &eng)
virtual const std::string & window_id() const override
The ID of the window to build.
ng::create_engine & engine_
void add_campaign_to_tree(const config &campaign)
void filter_text_changed(const std::string &text)
void campaign_selected()
Called when another campaign is selected.
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
RNG_MODE get_rng_mode() const
std::vector< std::string > last_search_words_
std::vector< std::string > page_ids_
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on.