aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.hpp
diff options
context:
space:
mode:
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);