Announcement

Collapse
No announcement yet.

All plugins need updating

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    -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
    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

    Comment


    • #3
      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.)
      Follow Me on Twitter or Facebook
      Live mp3Car Facebook Chat

      Comment


      • #4
        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

        Comment


        • #5
          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."

          Comment


          • #6
            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

            Comment


            • #7
              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.)
              Follow Me on Twitter or Facebook
              Live mp3Car Facebook Chat

              Comment


              • #9
                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.)
                Follow Me on Twitter or Facebook
                Live mp3Car Facebook Chat

                Comment


                • #10
                  Has been fixed also this issue?
                  _______________________________________
                  Car installation 95% [■■■■■■■■■■■■■■■■■■■]
                  Current project: Parking sensor USB interface

                  Comment


                  • #11
                    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

                    "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

                    Comment


                    • #12
                      bump for c#...
                      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

                      Comment


                      • #13
                        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.

                        Current Project: DFXVoice [v1.0 Released]
                        Next in line: RRMedia v2.0

                        DFX 5.1.1 Skin
                        Appstore Link

                        My RideRunner Plugins
                        RRMedia
                        RRExtended
                        DFXVoice

                        "There are no bugs - only undocumented features."

                        Comment


                        • #14
                          Originally posted by 2k1Toaster View Post
                          bump for c#...

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

                          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.

                          Comment


                          • #15
                            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.
                            mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
                            Follow Me on Twitter or Facebook
                            Live mp3Car Facebook Chat

                            Comment

                            Working...
                            X