X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FHUD.hpp;fp=src%2Fui%2FHUD.hpp;h=7db025865c329c92cddde9916ee889fd85857832;hb=54f3f1260b95a924fcb40d9d6de3fa2e2c382f6f;hp=cab8f93e0bf13c26cccb69a6a3a4d48b6ac28fa9;hpb=b49cc8c88caf7d69b35b50e23a40528e71306ade;p=blank.git diff --git a/src/ui/HUD.hpp b/src/ui/HUD.hpp index cab8f93..7db0258 100644 --- a/src/ui/HUD.hpp +++ b/src/ui/HUD.hpp @@ -47,6 +47,8 @@ public: void PostMessage(const std::string &msg) { PostMessage(msg.c_str()); } + // whether to always render message box regardless of last post + void KeepMessages(bool k) { msg_keep = k; } void Update(int dt); void Render(Viewport &) noexcept; @@ -80,6 +82,7 @@ private: // message box MessageBox messages; IntervalTimer msg_timer; + bool msg_keep; // crosshair PrimitiveMesh crosshair;