LoadingScreen: add support for important labels

Used in saveGame so the player can be sure whether or not the game was saved.

Fixes #3074
This commit is contained in:
scrawl 2015-12-15 21:14:25 +01:00
parent 67883feaae
commit d5a2586f38
4 changed files with 27 additions and 4 deletions

View file

@ -9,7 +9,12 @@ namespace Loading
{
public:
/// Set a text label to show on the loading screen.
virtual void setLabel (const std::string& label) {}
/// @param label The label
/// @param important Is the label considered important to show?
/// @note "non-important" labels may not show on screen if the loading process went so fast
/// that the implementation decided not to show a loading screen at all. "important" labels
/// will show in a separate message-box if the loading screen was not shown.
virtual void setLabel (const std::string& label, bool important=false) {}
/// Start a loading sequence. Must call loadingOff() when done.
/// @note To get the loading screen to actually update, you must call setProgress / increaseProgress periodically.