mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- CLuaInstance::MenuAddItem: add 'next' and 'cancel' items
This commit is contained in:
@@ -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") {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user