79 std::vector<const unit_type*>
units_;
89 virtual const std::string&
window_id()
const override;
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
Abstract base class for all modal dialogs.
This shows the debug-mode dialog to create new units on the map.
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
unit_race::GENDER gender_
group< unit_race::GENDER > gender_toggle
unit_race::GENDER gender()
Gender choice from the user.
bool no_choice() const
Whether the user actually chose a unit type or not.
std::vector< std::string > last_words_
void list_item_clicked()
Callbacks.
std::string variation() const
Variation choice from the user.
void variation_menu_callback()
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
void filter_text_changed(const std::string &text)
void update_displayed_type()
void gender_toggle_callback(const unit_race::GENDER val)
const std::string & choice() const
Unit type choice from the user.
std::vector< const unit_type * > units_
virtual const std::string & window_id() const override
The ID of the window to build.
base class of top level items, the only item which needs to store the final canvases to draw on.
A single unit type that the player may recruit.
Various uncategorised dialogs.