19 #include <SDL2/SDL_keycode.h>
35 explicit end_credits(
const std::string& campaign =
"");
40 virtual void update()
override;
43 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.
std::vector< std::string > backgrounds_
scroll_label * text_widget_
const std::string & focus_on_
void key_press_callback(const SDL_Keycode key)
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
virtual void update() override
TLD override to update animations, called once per frame.
end_credits(const std::string &campaign="")
virtual const std::string & window_id() const override
The ID of the window to build.
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.
#define DEFINE_SIMPLE_DISPLAY_WRAPPER(dialog)
Adds a bare-bones static display function to a dialog class that immediately invokes the dialogs's mo...
Various uncategorised dialogs.