add menu construct
parent
3c0e745cdf
commit
03dda388c2
15
base/ui.hpp
15
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);
|
||||
|
|
Loading…
Reference in New Issue