Problem with images and ReturnIndicatorEx
Hey!
I'm trying to get a couple of images to be displayed from my C# plugin.
I was able to display an image from my skin file using 'IMG', but when I try to use an indicator things don't work. I'm trying to use the same image in both methods.
Some background... This plugin is a custom sirius plugin for my OEM sirius receiver. I'm trying to show the current sirius channel art. I can debug my plugin, and I can see that my custom indicator is getting called, as is the albumart indicator.
Here is some example code:
skin file:
Code:
I01,543,7,242,92,$RTGCANBUS_SIRIUS_FAV01$
J01,543,7,242,92
/IMG,543,7,242,92,"C:\Program Files (x86)\RideRunner\SRArt\20.png"
plugin.cs
Code:
public string ReturnIndicator(string Ind)
{
string s = "";
return s;
}
public string ReturnIndicatorEx(string Ind)
{
string s = "";
if ((initd) && (active))
{
switch (Ind.ToLower())
{
case "rtgcanbus_sirius_art":
s = "C:/Program Files (x86)/RideRunner/SRArt/" + currentSiriusChannel.ToString() + ".png";
break;
case "rtgcanbus_sirius_fav01":
s = "C:/Program Files (x86)/RideRunner/SRArt/20.png";
break;
case "albumart":
s = "C:/Program Files (x86)/RideRunner/SRArt/20.png";
break;
}
}
return s;
}
So... what am I doing wrong.... I have tried all of these options separately by commenting them out in both the skin file and the plugin.
Thanks,
Ryan