diff --git a/base/ui.hpp b/base/ui.hpp index 2d66fa4..42121ef 100644 --- a/base/ui.hpp +++ b/base/ui.hpp @@ -334,6 +334,21 @@ public: bool button(const char *caption) { return ImGui::Button(caption); } + + bool beginMenu(const char* caption) { + return ImGui::BeginMenu(caption); + } + + bool menuItem(const char* caption,const char* shortcut) + { + return ImGui::MenuItem(caption, shortcut); + } + + bool beginMenuBar() + { + return ImGui::BeginMenuBar(); + } + void text(const char *formatstr, ...) { va_list args; va_start(args, formatstr);