13 lines
243 B
C++
13 lines
243 B
C++
|
|
#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);
|
||
|
|
}
|
||
|
|
|