Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 07-05-2009, 10:05 PM   #1
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
Exclamation Ride Runner Plugins [Standardization, Using, Writing and Updating them]

There were multiple stickies created over the course of time while the standardization was taking place, and ideas being discussed. This has all been implemented now. I have put all information into this one sticky. This helps clean up the forums, and puts all the information in one place.

First off, Ride Runner now will automatically load any plugins that are located in the "../Ride Runner/Plugins/" folder. This means that you no longer need the X,PluginName in your menu skins, or in an include file. So to use a plugin, simply copy the files into the Plugins folder, and register the Dll's. This also means that you do not have to set up individual skins to use the plugins, as they are loaded and available to any skin when RR starts.

When creating a plugin, please follow the following guidelines:

(This section was written by Enforcer)

  1. No plugin should use hardcoded paths to where it is located (For reading and writing to custom .ini's for instance)
  2. A set of example skin files should be provided preferably in either BMV2 or Carwings in the release thread (bmv2 PSD's are available in MP3car downloads section, Carwings PSD's are available in the Carwings thread)
  3. Plugins should be in a zip archive such that when extracted the files are in a folder with the same name as the plugin.
  4. All plugin labels, buttons, sliders and indicators should be prefixed with the plugin name (to avoid conflicting with other plugins)
  5. A txt file containing a list of button, labels, indicator a slider codes should be included in the zip file (call it skincommands.txt)
  6. An indicator that has the same name as the plugin, so that other plugins can tell if they are running or not.

(This section was written by Mitch)

CHANGES TO EXISTING PLUGINS WILL NEED TO BE MADE

GUINO has fixed the Indicator code for plugins, to do that a change had to be made in the main code to allow a non processed Indicator...

The solution was adding of the ReturnIndicatorEx which depreciates ReturnIndicator

change your code to the default return of "" instead of "False" in all of your plugins.


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

.
__________________
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

Last edited by JohnWPB; 07-07-2009 at 02:47 AM.
JohnWPB is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

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
My comprehensive guide to Road Runner and Flash Sonicxtacy02 RR Skins 15 06-22-2009 01:43 PM
Ride Runner - lost my library button chisel900 Road Runner 6 05-18-2009 01:51 PM
Discussion of Standardization in RoadRunner skins, plugins, addons and whatever else GizmoQ Road Runner 139 05-08-2009 09:29 AM
Ride Runner front end mav1989 Road Runner 7 05-02-2009 08:44 AM
Road Runner Plugin Manager Online! Submit Your Plugins Now! Sonicxtacy02 RR Plugins No Longer Supported 102 03-08-2009 02:13 PM



All times are GMT -5. The time now is 02:58 AM.


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