I will prob post my C# plugin template i did at some point
mitch
GUINO has fixed the Indicator in plugins, to do that
a change has to be made in the main code to allow
a non processed Indicator...
this is the solution we came up with, and adding of the ReturnIndicatorEx
which depreciates ReturnIndicator
change your code to the default return of "" instead of "False"
example
also... TO MOVE FORWARD change ReturnIndicator to ReturnIndicatorExCode:Public Function ReturnIndicator(IND As String) As String 'Default (No Action) 'ONLY return "True" or "False" IF AND ONLY IF you process that code 'else return "" ReturnIndicator = "" Select Case LCase(IND) Case "myindicator" ReturnIndicatorEx = "True" End Select End Function
ReturnIndicatorEx:
Code:'***************************************************************** '* This Function will be called with requested indicator code '* specified at the skin file. Simply return "True" or "False" to '* displayed the respective ON or OFF layer of the skin images. '* alternatively you can specify a path to a file to be displayed '* as the indicator specified. Return "False" to erase the image. '* ONLY return something else IF AND ONLY IF you process that code '***************************************************************** Public Function ReturnIndicatorEx(IND As String) As String 'Default (No Action) ' DO NOT RETURN "False" for unprocess indicators, return "" ReturnIndicatorEx = "" Select Case LCase(IND) Case "myindicator" 'This example show ON for even seconds and OFF otherwise ReturnIndicatorEx = IIf(Val(Format(Time, "SS")) Mod 2 = 0, "C:\VBStuff\Road Runner\XMArt\1.gif", "False") 'Specify whatever and whichever indicators you wish to create 'You can add as many as you'd like, and you can process complex indicators as long 'as you parse them yourself (i.e. "mycomplexindicator;parameter") 'Case "myindicator2" 'Insert Code here to return "True", "False" or Path name End Select End Function
-Thanks
Mitch
www.rush2112.net
"Did you test it in carwings??"
Sun, Come shine my way
May healing waters bury all my pain
Wind, Carry me home
The fabric of reality is tearing apart
The piece of me that died
Will return To live again
I will prob post my C# plugin template i did at some point
mitch
-Thanks
Mitch
www.rush2112.net
"Did you test it in carwings??"
Sun, Come shine my way
May healing waters bury all my pain
Wind, Carry me home
The fabric of reality is tearing apart
The piece of me that died
Will return To live again
it says there in the notes.. but i wanted to point out the addition to the indicator code. Plugin indicators can now be true, false, OR an image path. This will allow you to display an image through an indicator.. similar to the way the ALBUMART indicator works. To display the image simple create an indicator and set the case for that indicator to ReturnIndicatorEX = IMAGEPATH.. like so
to remove this indicator from being shown simplyCode:Case "myindicator2" ReturnIndicatorEx = ImagePath 'where ImagePath is a full path to image file stored locally
Code:ImagePath = "False"
NOVA, MD, DC Monthly Meets Here
Ride Runner and Centrafuse 3 plugin creator
mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
Find my plugins on the MP3Car App Store!
Follow Me on Twitter or Facebook
Live mp3Car Facebook Chat
This is in fact a great improvement as the same indicator code is not limited to just On/Off states, but it can be expanded to many different states displayed each by a different image... an example would be the channel arts for XM/Sirius etc.. where the Album art is an indicator and the image of channel is just a different state for the indicator. Not to say, the images will be loaded with transparency over the OFF layer.
Ride Runner RR's Myspace
"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
Mitch, in your example above you do have the code correct, but in the comments it states:
'ONLY return "True" or "False" IF AND ONLY IF you process that code
You may want to change that, as if they read the "instructions" in the code, it would defeat the "" instead of "false"
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart
My Fiero Build Thread
NOVA, MD, DC Monthly Meets Here
Ride Runner and Centrafuse 3 plugin creator
mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
Find my plugins on the MP3Car App Store!
Follow Me on Twitter or Facebook
Live mp3Car Facebook Chat
Does this mean the the ReturnIndicator section is now completely ignored and we are to use ReturnIndicatorEx only?
no ReturnIndicator still works fine as long as the default isnt set to false. That being said ReturnIndicatorEX is EXACTLY the same accept for the image improvement
NOVA, MD, DC Monthly Meets Here
Ride Runner and Centrafuse 3 plugin creator
mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
Find my plugins on the MP3Car App Store!
Follow Me on Twitter or Facebook
Live mp3Car Facebook Chat
Has been fixed also this issue?
_______________________________________
Car installation 95% [■■■■■■■■■■■■■■■■■■■■]
Current project: Parking sensor USB interface
Bookmarks