|
 |
|
09-10-2008, 10:28 AM
|
#1
|
|
Raw Wave
Join Date: Oct 2004
Posts: 2,083
|
All plugins need updating
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
Code:
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
also... TO MOVE FORWARD change ReturnIndicator to ReturnIndicatorEx
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
Spread before you is your soul
So forever hold the dreams
within our hearts
Through nature's inflexible grace
I'm learning to live
Last edited by mitchjs; 09-10-2008 at 06:37 PM..
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
09-10-2008, 10:30 AM
|
#2
|
|
Raw Wave
Join Date: Oct 2004
Posts: 2,083
|
I will prob post my C# plugin template i did at some point
mitch
__________________
-Thanks
Mitch
www.rush2112.net
Spread before you is your soul
So forever hold the dreams
within our hearts
Through nature's inflexible grace
I'm learning to live
|
|
|
09-10-2008, 10:35 AM
|
#3
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,267
|
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
Code:
Case "myindicator2"
ReturnIndicatorEx = ImagePath
'where ImagePath is a full path to image file stored locally
to remove this indicator from being shown simply
Code:
ImagePath = "False"
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
Last edited by Sonicxtacy02; 09-10-2008 at 01:26 PM..
|
|
|
09-10-2008, 10:39 AM
|
#4
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
|
Quote: Originally Posted by mitchjs 
I will prob post my C# plugin template i did at some point
mitch
Would appreciate that.
|
|
|
09-10-2008, 02:42 PM
|
#5
|
|
RoadRunner Mastermind
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,016
|
Quote: Originally Posted by Sonicxtacy02 
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
Code:
Case "myindicator2"
ReturnIndicatorEx = ImagePath
'where ImagePath is a full path to image file stored locally
to remove this indicator from being shown simply
Code:
ImagePath = "False"
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."
|
|
|
09-10-2008, 03:37 PM
|
#6
|
|
Super Moderator
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,725
|
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"
|
|
|
09-10-2008, 03:43 PM
|
#7
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,267
|
Quote: Originally Posted by JohnWPB 
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"
i'm lost on that one. You can still set ReturnIndicator to False, you just cant set it as false as the default setting. Where ReturnIndicator = "" used to be ReturnIndicator = false. That was pretty much the root of the problem
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
09-10-2008, 05:45 PM
|
#8
|
|
Confusion Master
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 11,892
|
Does this mean the the ReturnIndicator section is now completely ignored and we are to use ReturnIndicatorEx only?
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
09-10-2008, 06:13 PM
|
#9
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,267
|
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
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
09-11-2008, 02:09 AM
|
#10
|
|
Maximum Bitrate
Join Date: Aug 2005
Location: Italy
Posts: 558
|
Has been fixed also this issue?
__________________
_______________________________________
Car installation 95% [ ■■■■■■■■■■■■■■■■■■■■]
Current project: Parking sensor USB interface
|
|
|
09-11-2008, 06:35 AM
|
#11
|
|
Raw Wave
Join Date: Oct 2004
Posts: 2,083
|
Quote: Originally Posted by Robby BMW 
Has been fixed also this issue?
there is no issue
if not proccesing a slider return a -1
mitch
__________________
-Thanks
Mitch
www.rush2112.net
Spread before you is your soul
So forever hold the dreams
within our hearts
Through nature's inflexible grace
I'm learning to live
|
|
|
09-16-2008, 12:45 AM
|
#12
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,849
|
bump for c#...
|
|
|
09-16-2008, 05:00 AM
|
#13
|
|
The Curator
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,526
|
Quote: Originally Posted by Sonicxtacy02 
That being said ReturnIndicatorEX is EXACTLY the same accept for the image improvement
You have me lost at "accept for the image improvement"? What Image improvment? You could always set a path to be displayed, since....IDK.
|
|
|
09-16-2008, 08:41 AM
|
#14
|
|
Confusion Master
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 11,892
|
Quote: Originally Posted by 2k1Toaster 
bump for c#...
It's C#'s birthday, how old?
Quote: Originally Posted by Blue ZX3 
You have me lost at "accept for the image improvement"? What Image improvment? You could always set a path to be displayed, since....IDK. 
I was thinking this, but thought I had already given mitch too much of a hard time to mention it.
|
|
|
09-16-2008, 09:36 AM
|
#15
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,267
|
Quote: Originally Posted by Blue ZX3 
You have me lost at "accept for the image improvement"? What Image improvment? You could always set a path to be displayed, since....IDK. 
you could always set a custom image path to for an indicator in the extension interface? Thats news to me.. i thought it was an ON/OFF thing only before.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:17 AM.
| |