Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: All plugins need updating

  1. #1
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,246

    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 Attached Files
    -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

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,246
    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

  3. #3
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,148
    Blog Entries
    51
    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"
    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

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by mitchjs View Post
    I will prob post my C# plugin template i did at some point

    mitch
    Would appreciate that.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  6. #6
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,691
    Blog Entries
    1
    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

  7. #7
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,148
    Blog Entries
    51
    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
    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

  8. #8
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,617
    Does this mean the the ReturnIndicator section is now completely ignored and we are to use ReturnIndicatorEx only?

  9. #9
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,148
    Blog Entries
    51
    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
    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

  10. #10
    Maximum Bitrate Robby BMW's Avatar
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    558
    Has been fixed also this issue?
    _______________________________________
    Car installation 95% [■■■■■■■■■■■■■■■■■■■]
    Current project: Parking sensor USB interface

Page 1 of 3 123 LastLast

Similar Threads

  1. List of available plugins and features
    By JohnWPB in forum RR Plugins
    Replies: 5
    Last Post: 10-25-2008, 06:16 PM
  2. Replies: 15
    Last Post: 08-21-2007, 03:46 PM
  3. Embed several plugins, time delay
    By Flappy in forum Road Runner
    Replies: 3
    Last Post: 01-02-2006, 03:22 PM
  4. Codecs and plugins
    By Rider in forum Road Runner
    Replies: 3
    Last Post: 09-20-2005, 08:55 AM
  5. How to use extra/different plugins
    By globbits in forum ME Archive
    Replies: 7
    Last Post: 08-30-2003, 05:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •