19 #include <SDL2/SDL_keycode.h>
34 explicit end_credits(
const std::string& campaign =
"");
39 virtual void update()
override;
42 virtual const std::string&
window_id()
const override;
73 std::vector<std::vector<std::string>>
chunks_;
std::string sliding_content_
std::vector< std::string > backgrounds_
scroll_label * text_widget_
static constexpr std::size_t lines_per_chunk_
number of lines to put in each chunk of text to display the final chunk will of course probably have ...
const std::string & focus_on_
void key_press_callback(const SDL_Keycode key)
std::vector< std::vector< std::string > > chunks_
static constexpr std::size_t sliding_size_
sliding_size_ alters how many of the sliding contents are to be run at once n-1 = 2 => 3 strings at o...
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.