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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6a821fe2a5
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-01-27 (Mon, 27 Jan 2014)

Origin message was:
------------------
- CLuaInstance::MenuAddItem: add 'next' and 'cancel' items

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-01-27 21:10:41 +01:00
parent 267405c5f7
commit b87b7e17c8
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); std::string type; tableLookup(L, "type", type);
if (type == "back") { if (type == "back") {
m->m->addItem(GenericMenuBack); m->m->addItem(GenericMenuBack);
} else if (type == "next") {
m->m->addItem(GenericMenuNext);
} else if (type == "cancel") {
m->m->addItem(GenericMenuCancel);
} else if (type == "separator") { } else if (type == "separator") {
m->m->addItem(GenericMenuSeparator); m->m->addItem(GenericMenuSeparator);
} else if (type == "separatorline") { } else if (type == "separatorline") {

View File

@@ -650,6 +650,7 @@ class CMenuSelectorTarget : public CMenuTarget
extern CMenuSeparator * const GenericMenuSeparator; extern CMenuSeparator * const GenericMenuSeparator;
extern CMenuSeparator * const GenericMenuSeparatorLine; extern CMenuSeparator * const GenericMenuSeparatorLine;
extern CMenuForwarder * const GenericMenuBack; extern CMenuForwarder * const GenericMenuBack;
extern CMenuForwarder * const GenericMenuNext;
extern CMenuForwarder * const GenericMenuCancel; extern CMenuForwarder * const GenericMenuCancel;
#endif #endif