]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/HUD.hpp
server: notify clients of player joins/parts
[blank.git] / src / ui / HUD.hpp
index cab8f93e0bf13c26cccb69a6a3a4d48b6ac28fa9..7db025865c329c92cddde9916ee889fd85857832 100644 (file)
@@ -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;