neutrino: add a prototype of a lua plugin interface

this is just for preliminary tests, not yet really usable
for anything useful
This commit is contained in:
Stefan Seyfried
2013-03-17 23:24:45 +01:00
committed by M. Liebmann
parent 7b40b61c9a
commit f26357e887
8 changed files with 378 additions and 6 deletions

View File

@@ -308,7 +308,9 @@ bool CUserMenu::showUserMenu(int button)
int cnt = 0;
for (unsigned int count = 0; count < (unsigned int) g_PluginList->getNumberOfPlugins(); count++)
{
if (g_PluginList->getType(count)== CPlugins::P_TYPE_TOOL && !g_PluginList->isHidden(count))
bool show = g_PluginList->getType(count) == CPlugins::P_TYPE_TOOL ||
g_PluginList->getType(count) == CPlugins::P_TYPE_LUA;
if (show && !g_PluginList->isHidden(count))
{
sprintf(id, "%d", count);
menu_items++;