Got rid of AnimView, added Gui

This commit is contained in:
2021-02-07 13:38:29 -05:00
parent 0721d29c72
commit 1ff94e2591
13 changed files with 118 additions and 123 deletions

12
luprex/cpp/gui.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "gui.hpp"
LuaDefineType(Gui);
void Gui::add_menu_item(const std::string &id, const std::string &label) {
GuiElt elt;
elt.type_ = GuiElt::TYPE_MENU_ITEM;
elt.id_ = id;
elt.label_ = label;
elts_.push_back(elt);
}