diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index ed83ca2b3..fe32b75a6 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -886,6 +886,10 @@ int CLuaInstance::MenuAddItem(lua_State *L) std::string type; tableLookup(L, "type", type); if (type == "back") { m->m->addItem(GenericMenuBack); + } else if (type == "next") { + m->m->addItem(GenericMenuNext); + } else if (type == "cancel") { + m->m->addItem(GenericMenuCancel); } else if (type == "separator") { m->m->addItem(GenericMenuSeparator); } else if (type == "separatorline") { diff --git a/src/gui/widget/menue.h b/src/gui/widget/menue.h index d80d446c3..c6e9c234e 100644 --- a/src/gui/widget/menue.h +++ b/src/gui/widget/menue.h @@ -650,6 +650,7 @@ class CMenuSelectorTarget : public CMenuTarget extern CMenuSeparator * const GenericMenuSeparator; extern CMenuSeparator * const GenericMenuSeparatorLine; extern CMenuForwarder * const GenericMenuBack; +extern CMenuForwarder * const GenericMenuNext; extern CMenuForwarder * const GenericMenuCancel; #endif