plugins: type for listed plugins on blue key is selectable

* add mainmenu items for tools and lua-extensions
 (default not visible)
* add usermenu items for tools and lua-extensions
 (default off)


Origin commit data
------------------
Commit: f9ad30f183
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-02-04 (Tue, 04 Feb 2014)

Origin message was:
------------------
- plugins: type for listed plugins on blue key is selectable

* add mainmenu items for tools and lua-extensions
 (default not visible)
* add usermenu items for tools and lua-extensions
 (default off)
This commit is contained in:
vanhofen
2014-02-04 09:08:21 +01:00
parent fc1b332cc7
commit 530d403ee0
13 changed files with 85 additions and 11 deletions

View File

@@ -134,6 +134,8 @@ int CPluginList::exec(CMenuTarget* parent, const std::string & /*actionKey*/)
tmp->number = count;
tmp->name = g_PluginList->getName(count);
tmp->desc = g_PluginList->getDescription(count);
if (tmp->desc == "")
tmp->desc = "---";
pluginlist.push_back(tmp);
}
}
@@ -310,7 +312,7 @@ void CPluginList::paintHead()
if (pluginlisttype == CPlugins::P_TYPE_GAME)
header.setIcon(NEUTRINO_ICON_GAMES);
else if (pluginlisttype == CPlugins::P_TYPE_SCRIPT)
else
header.setIcon(NEUTRINO_ICON_SHELL);
header.paint(CC_SAVE_SCREEN_NO);
@@ -356,11 +358,10 @@ void CPluginList::paintItems()
CPluginList::result_ CPluginList::pluginSelected()
{
hide();
g_PluginList->startPlugin(pluginlist[selected]->number,0);
if (!g_PluginList->getScriptOutput().empty())
{
hide();
//ShowMsg(LOCALE_PLUGINS_RESULT, Latin1_to_UTF8(g_PluginList->getScriptOutput()), CMessageBox::mbrBack,CMessageBox::mbBack,NEUTRINO_ICON_SHELL);
ShowMsg(LOCALE_PLUGINS_RESULT, g_PluginList->getScriptOutput(), CMessageBox::mbrBack,CMessageBox::mbBack,NEUTRINO_ICON_SHELL);
}
paint();