mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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:
parent
67883feaae
commit
d5a2586f38
4 changed files with 27 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue