X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FHUD.hpp;h=7db025865c329c92cddde9916ee889fd85857832;hb=7f15e27277382f0176a23dd21702f9d113581763;hp=cab8f93e0bf13c26cccb69a6a3a4d48b6ac28fa9;hpb=75172fd735e34082c34b47ae7c194445b53038d9;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;