diff options
Diffstat (limited to '')
-rw-r--r-- | src/render/Hud.cpp | 6 | ||||
-rw-r--r-- | src/render/Hud.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index daafd27b..10408355 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -1708,6 +1708,12 @@ void CHud::SetHelpMessage(wchar *message, bool quick) } } +bool CHud::IsHelpMessageBeingDisplayed(void) +{ + return m_HelpMessageState != 0; +} + + void CHud::SetMessage(wchar *message) { int i = 0; diff --git a/src/render/Hud.h b/src/render/Hud.h index 9106f6fa..4dd52aa8 100644 --- a/src/render/Hud.h +++ b/src/render/Hud.h @@ -133,6 +133,7 @@ public: static void ReInitialise(); static void SetBigMessage(wchar *message, int16 style); static void SetHelpMessage(wchar *message, bool quick); + static bool IsHelpMessageBeingDisplayed(void); static void SetMessage(wchar *message); static void SetPagerMessage(wchar *message); static void SetVehicleName(wchar *name); |