- January 2, 2006
- 1,484
- 114
Hi falkyre,2) I've looked at a few of the plugins I have on my system and they are not setup for a name change. You can select where they are located (in the My Plugins or listed in home). Where have you found a plugin that can be renamed?
an example for a plugin name change. In my plugin MyFilms, you can define a plugin name in setup. That value is stored in my MYFilms.xml file (you also can put it in mediaportal.xml file) and in the main plugin code, you have to change the GetHome function as this :
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
{
string wPluginName = StrPluginName;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml"))
{
wPluginName = xmlreader.GetValueAsString("MyFilms", "PluginName", "My Films");
}
strButtonText = wPluginName;