81 static void display(std::function<
void()>
f);
126 virtual void process()
override;
129 virtual void layout()
override;
std::future< void > worker_result_
static void progress(loading_stage stage=loading_stage::none)
Report what is being loaded to the loading screen.
virtual const std::string & window_id() const override
The ID of the window to build.
virtual void layout() override
Called by draw_manager to assign concrete layout.
std::atomic< loading_stage > current_stage_
static loading_screen * singleton_
label * progress_stage_label_
stage_map visible_stages_
static void display(std::function< void()> f)
std::vector< std::function< void()> > load_funcs_
std::unique_ptr< cursor::setter > cursor_setter_
stage_map::const_iterator current_visible_stage_
virtual void process() override
Inherited from events::pump_monitor.
utils::optional< decltype(std::chrono::steady_clock::now())> animation_start_
std::map< loading_stage, t_string > stage_map
loading_screen(std::function< void()> f)
static void spin()
Indicate to the player that loading is progressing.
virtual void post_show() override
Actions to be taken after the window has been shown.
virtual void pre_show() override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
std::string label
What to show in the filter's drop-down list.
loading_stage
Loading screen stage IDs.
Various uncategorised dialogs.