- CLuaInstance::MenuAddItem: add 'next' and 'cancel' items

This commit is contained in:
svenhoefer
2014-01-27 21:10:41 +01:00
parent 372b367b8b
commit 6a821fe2a5
2 changed files with 5 additions and 0 deletions

View File

@@ -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") {