From 034c802edd39be537a626c1961272a6137b5980e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 16 Nov 2022 08:11:00 -0500 Subject: text clears with dialog box --- src/text.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/text.hpp') 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 #include #include @@ -67,6 +69,7 @@ struct Font { float width; float height; + bool changed = false; std::array 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); -- cgit v1.2.3