Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins


Reply
 
Share Thread Tools Display Modes
Old 09-10-2008, 10:28 AM   #1
Raw Wave
 
Join Date: Oct 2004
Posts: 2,125
mitchjs is on a distinguished road
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

Attached Files
File Type: zip Extension Plugin.zip (14.6 KB, 156 views)
__________________
-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.
mitchjs is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-10-2008, 10:30 AM   #2
Raw Wave
 
Join Date: Oct 2004
Posts: 2,125
mitchjs is on a distinguished road
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
mitchjs is offline   Reply With Quote
Old 09-10-2008, 10:35 AM   #3
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
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.
Sonicxtacy02 is offline   Reply With Quote
Old 09-10-2008, 10:39 AM   #4
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Quote: Originally Posted by mitchjs View Post
I will prob post my C# plugin template i did at some point

mitch

Would appreciate that.
2k1Toaster is offline   Reply With Quote
Old 09-10-2008, 02:42 PM   #5
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,059
guino will become famous soon enoughguino will become famous soon enough
Quote: Originally Posted by Sonicxtacy02 View Post
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."
guino is offline   Reply With Quote
Old 09-10-2008, 03:37 PM   #6
Super Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
JohnWPB is a jewel in the roughJohnWPB is a jewel in the roughJohnWPB is a jewel in the rough
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 DigitalFX 4.0 Skin Available at www.JohnWPB.com

My Fiero Build Thread
JohnWPB is offline   Reply With Quote
Old 09-10-2008, 03:43 PM   #7
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
Quote: Originally Posted by JohnWPB View Post
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
Sonicxtacy02 is offline   Reply With Quote
Old 09-10-2008, 05:45 PM   #8
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 11,928
Enforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant future
Does this mean the the ReturnIndicator section is now completely ignored and we are to use ReturnIndicatorEx only?
Enforcer is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-10-2008, 06:13 PM   #9
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
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
Sonicxtacy02 is offline   Reply With Quote
Old 09-11-2008, 02:09 AM   #10
Maximum Bitrate
 
Robby BMW's Avatar
 
Join Date: Aug 2005
Location: Italy
Posts: 558
Robby BMW is on a distinguished road
Has been fixed also this issue?
__________________
_______________________________________
Car installation 95% [■■■■■■■■■■■■■■■■■■■]
Current project: Parking sensor USB interface
Robby BMW is offline   Reply With Quote
Old 09-11-2008, 06:35 AM   #11
Raw Wave
 
Join Date: Oct 2004
Posts: 2,125
mitchjs is on a distinguished road
Quote: Originally Posted by Robby BMW View Post
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
mitchjs is offline   Reply With Quote
Old 09-16-2008, 12:45 AM   #12
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
bump for c#...
2k1Toaster is offline   Reply With Quote
Old 09-16-2008, 05:00 AM   #13
The Curator
 
Blue ZX3's Avatar
 
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,565
Blue ZX3 will become famous soon enoughBlue ZX3 will become famous soon enough
Quote: Originally Posted by Sonicxtacy02 View Post
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.
__________________
RideRunner...The #1 FE, PERIOD.

RR Media >>HERE <<

RRExtended Plugin
Updated RR Config (Current Ver 1.0.2.0)
Old RR Versions
Complete CFX PSD Set
RRSkinEditor v.76c
DFX Btn Editor
Blue ZX3 is offline   Reply With Quote
Old 09-16-2008, 08:41 AM   #14
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 11,928
Enforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant futureEnforcer has a brilliant future
Quote: Originally Posted by 2k1Toaster View Post
bump for c#...


It's C#'s birthday, how old?

Quote: Originally Posted by Blue ZX3 View Post
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.
Enforcer is offline   Reply With Quote
Old 09-16-2008, 09:36 AM   #15
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
Quote: Originally Posted by Blue ZX3 View Post
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
Sonicxtacy02 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of available plugins and features JohnWPB RR Plugins 5 10-25-2008 07:16 PM
StreetDeck Input Plugins (Remotes, Steering Wheel Controls, etc.) god_of_cpu StreetDeck F.A.Q. 15 08-21-2007 04:46 PM
Embed several plugins, time delay Flappy Road Runner 3 01-02-2006 04:22 PM
Codecs and plugins Rider Road Runner 3 09-20-2005 09:55 AM
How to use extra/different plugins globbits ME Archive 7 08-30-2003 06:42 AM



All times are GMT -5. The time now is 04:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics