]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/HUD.hpp
treat head pitch and yaw as entity state
[blank.git] / src / ui / HUD.hpp
index 32a167b865d2979209f763a1e12341280f3b2f28..7db025865c329c92cddde9916ee889fd85857832 100644 (file)
@@ -4,7 +4,7 @@
 #include "FixedText.hpp"
 #include "MessageBox.hpp"
 #include "../graphics/EntityMesh.hpp"
-#include "../graphics/OutlineMesh.hpp"
+#include "../graphics/PrimitiveMesh.hpp"
 
 #include <glm/glm.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;
@@ -57,7 +59,7 @@ private:
        const Player &player;
 
        // block focus
-       OutlineMesh outline;
+       PrimitiveMesh outline;
        glm::mat4 outline_transform;
        bool outline_visible;
 
@@ -80,9 +82,10 @@ private:
        // message box
        MessageBox messages;
        IntervalTimer msg_timer;
+       bool msg_keep;
 
        // crosshair
-       OutlineMesh crosshair;
+       PrimitiveMesh crosshair;
 
 };