From 6a821fe2a58ce9419de501ab2cb378084d9aa1a2 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 27 Jan 2014 21:10:41 +0100 Subject: [PATCH] - CLuaInstance::MenuAddItem: add 'next' and 'cancel' items --- src/gui/luainstance.cpp | 4 ++++ src/gui/widget/menue.h | 1 + 2 files changed, 5 insertions(+) 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