From be993f55f5d93150b8b418b031d2e9c8d88978b2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 15 Nov 2022 20:40:37 -0500 Subject: allow lua to create dialog box --- src/ui.hpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/ui.hpp') diff --git a/src/ui.hpp b/src/ui.hpp index 809b5dc..1986c8f 100644 --- a/src/ui.hpp +++ b/src/ui.hpp @@ -21,11 +21,13 @@ #ifndef SYSTEM_UI_HPP_ #define SYSTEM_UI_HPP_ +#include "events/render.hpp" + #include +#include +#include +#include -#include -#include -#include #include class UISystem : public entityx::System @@ -36,6 +38,18 @@ public: void update(entityx::EntityManager&, entityx::EventManager&, entityx::TimeDelta) final; + + void createDialogBox(float x, float y, float w, float h); + +private: + struct Box { + GLuint vbo; + float x, y, w, h; + }; + + std::vector m_boxes; + + NewRenderEvent generateDialogBox(Box& box); }; #endif // SYSTEM_UI_HPP_ -- cgit v1.2.3