aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-11-16 08:11:00 -0500
committerClyne Sullivan <clyne@bitgloo.com>2022-11-16 08:19:53 -0500
commit034c802edd39be537a626c1961272a6137b5980e (patch)
treed9b042878d8a8f573cf09744814270a32b920b89 /src/text.hpp
parentf892f3c3afb4a3795dc3ba5c26cacd1f8088b902 (diff)
text clears with dialog box
Diffstat (limited to 'src/text.hpp')
-rw-r--r--src/text.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text.hpp b/src/text.hpp
index 0f98688..de25459 100644
--- a/src/text.hpp
+++ b/src/text.hpp
@@ -23,6 +23,8 @@
#ifndef SYSTEM_TEXT_HPP_
#define SYSTEM_TEXT_HPP_
+#include "events/ui.hpp"
+
#include <entityx/entityx.h>
#include <ft2build.h>
#include <freetype/freetype.h>
@@ -67,6 +69,7 @@ struct Font {
float width;
float height;
+ bool changed = false;
std::array<FT_Info, 96> data;
// Stores currently shown text at given index into VBO?
@@ -106,6 +109,7 @@ public:
entityx::TimeDelta dt) final;
void receive(const ShowTextEvent&);
+ void receive(const HideDialog&);
void put(const std::string& font, float x, float y, const std::string& text);