39 virtual void update()
override;
42 virtual const std::string&
window_id()
const override;
Abstract base class for all modal dialogs.
Dialog to display 'The End' at the end of a campaign.
virtual void update() override
Displays a simple fading screen with any user-provided text.
std::chrono::milliseconds display_duration_
How long to display each text entry.
virtual void pre_show() override
Actions to be taken before showing the window.
std::chrono::steady_clock::time_point stage_start_
The time point at which the current stage began.
outro(const game_classification &info)
std::size_t text_index_
The index of the text currently being shown.
virtual const std::string & window_id() const override
The ID of the window to build.
double get_fade_progress(const std::chrono::steady_clock::time_point &now) const
Returns a normalized [0.0 .
std::vector< std::string > text_
The text to draw.
stage
Tracks whether we're fading in, displaying text, or fading out.
enum gui2::dialogs::outro::stage stage_
#define DEFINE_SIMPLE_DISPLAY_WRAPPER(dialog)
Adds a bare-bones static display function to a dialog class that immediately invokes the dialogs's mo...