Announcement

Collapse
No announcement yet.

Question on using an image for an indicators status

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

  • Question on using an image for an indicators status

    I am trying to find a way to use an image in the skin folder for an indicators status. Using shuffle for example, I would like to show ShuffleOn.png and ShuffleOff.png to show one of the 2 images based on the indicator status.

    The problem is I need this to happen based on when the indicator itself changes, and not having to press a button to run code to change the image based on the status. This is due to the fact that the indicators are controlled by many different plugins. Such as MobilePhone, RRSkype, RRVM ect ect.

    The idea behind this is to have an Indicators.txt Include that contains all the indicators, their locations, and images to use. This way 30 different PSD's do not have to be edited and saved out as png's with the indicators in the images themselves.

    So to add the indicators to menu.skin for instance, all that would be needed to be changed is to add:
    INC,Indicators.txt
    to the Menu.skin file

    If this is not able to be done presently, can something be added to RR to enable something like this? Blue and I are talking/working this out and came up with something along the way the iLists work. When you have an iList definition above an "S" line it tells the "S" line the additional parameters to be used.

    It would need something like the following syntax for use in a skin:

    Code:
    /,IND, Name, Off Image, On Image
    IND,mobilephone,Indicators\MobilePhone_off.png,Indicators\MobilePhone_on.png
    I,740,0,20,20,"mobilephone"
    the IND,[name] portion of the line is needed to keep track of what indicator on the skin is using which images, as there will be multiple indicators.

    Any thoughts????

    EDIT: Blue is already working on seeing if something can be easily added.... you know how gets going on something!!!!! (So much for finishing the updates to RRMedia, the Skin tool, RRConfig, RRExtended, RRSched)... and on and on and on..... LOL
    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

  • #2
    Originally posted by JohnWPB View Post
    I am trying to find a way to use an image in the skin folder for an indicators status. Using shuffle for example, I would like to show ShuffleOn.png and ShuffleOff.png to show one of the 2 images based on the indicator status.

    The problem is I need this to happen based on when the indicator itself changes, and not having to press a button to run code to change the image based on the status. This is due to the fact that the indicators are controlled by many different plugins. Such as MobilePhone, RRSkype, RRVM ect ect.
    Do you have any timers running on these screens. I created a battery check based on a label change that requires a timer:
    Code:
    "SETVAR;PSTATE1;$PSTATE$||SETVARBYCODE;pstate;powermon_powersrc||SETVAR;ONBATTERY;$PSTATE1$+$PSTATE$||BYSTR;$ONBATTERY$;External+Battery<PAUSE><<Battery+External<RESUME><<<RELOADLIST"
    Basically with a 15 second timer the above code saves the text of the label "powermon_powersrc" and compares it to what was saved last time. When it changes, it acts (in this case when change from external to battery it pauses RR, i.e., when I take the key out of the ignition and when it changes from battery to external it resumes). This code could easily be changed to run a loadimg command like I have for InetAudio
    Originally posted by JohnWPB View Post
    The idea behind this is to have an Indicators.txt Include that contains all the indicators, their locations, and images to use. This way 30 different PSD's do not have to be edited and saved out as png's with the indicators in the images themselves.
    Did Blue suggest the BYLBL command in RRExtended? I know my code above could be streamlined using it (I wrote it when RRextended was first released and haven't kept up with the updates). I'm not familiar with the INCLUDE.txt, but you say they're indicators, can't the BYIND command be used to change the indicator graphics?
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

    Comment


    • #3
      That would work, but he's more looking to sorta remove most of the standard RR indicators from the actual skin layer graphics and then just be able to specify a img to use for the off/on state of each indicator, and have the ind status change using said images instead of the layered ones.

      [ EDIT ]

      DUH!! Got it john... no extras needed! Well, might still look into simplifying it a dash as you would need two extra lines for every ind v's the previously mentioned idea...

      Using this line as example:
      Code:
      I2,70,5,52,29,"SHUFFLE"
      Define inds as normal.
      Add these two lines to the screen:
      Code:
      IMG,70,5,52,29,"Indicators\VoiceRecognition.png",ON
      IMG,70,5,52,29,"Indicators\VoiceRecognition_off.png",OFF
      using the same coords as the ind name. RR then basically pastes those images over those two layers, so when the ind status changes, it will use whatever is on those layers in those locs.
      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


      • #4
        Originally posted by Blue ZX3 View Post
        That would work, but he's more looking to sorta remove most of the standard RR indicators from the actual skin layer graphics and then just be able to specify a img to use for the off/on state of each indicator, and have the ind status change using said images instead of the layered ones.

        [ EDIT ]

        DUH!! Got it john... no extras needed! Well, might still look into simplifying it a dash as you would need two extra lines for every ind v's the previously mentioned idea...

        Using this line as example:
        Code:
        I2,70,5,52,29,"SHUFFLE"
        Define inds as normal.
        Add these two lines to the screen:
        Code:
        IMG,70,5,52,29,"Indicators\VoiceRecognition.png",ON
        IMG,70,5,52,29,"Indicators\VoiceRecognition_off.png",OFF
        using the same coords as the ind name. RR then basically pastes those images over those two layers, so when the ind status changes, it will use whatever is on those layers in those locs.
        DAMMN I was just about to say almost the same thing! But my suggestion was make the actual indicator invisible, i.e.,

        Code:
        I2,0,0,0,0,"SHUFFLE"
        Then create the images.
        HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

        Comment


        • #5
          Still like the first idea better, is both cleaner(skin file) and easier to add w/o re duping already specified info..ie coords
          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


          • #6
            Originally posted by Blue ZX3 View Post
            Still like the first idea better, is both cleaner(skin file) and easier to add w/o re duping already specified info..ie coords
            Question is, do you still need the indicators clickable?
            HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

            Comment


            • #7
              That wouldn't change, you still use the ind def skin def. This would be in addition to that line, an extended prop line just like the one for the lists that turn them into an ilist..
              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


              • #8
                I recommend the IMG ON/OFF solution best -- as it loads the layers only ONCE and never has to read the image files again. Please note that you CAN use variables in the IMG definition -- which ends up being very close to what you proposed (IND,imgOFF,imgON).

                Please let me know if this doesn't help you, then we can add something specific.
                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


                • #9
                  Actually, you'd have to put the images in the "EMPTY" & "ON" layers, not "OFF" and "ON," to have the off and on image states.

                  /DEFINE LTINDATTIND01 656,548,031,022
                  I00,#LTINDATTIND01#,"RRSypheRExt_ATTInd"
                  IMG,#LTINDATTIND01#,"ind_att_2OFF.png",EMPTY
                  IMG,#LTINDATTIND01#,"ind_att_3ON.png",ON

                  All my common indicators are in an INC-type skin file. Just have to be careful that you don't have overlaps in your indicator codes in your INC file and the local button codes.
                  Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                  Comment


                  • #10
                    Originally posted by GizmoQ View Post
                    DAMMN I was just about to say almost the same thing! But my suggestion was make the actual indicator invisible, i.e.,

                    Code:
                    I2,0,0,0,0,"SHUFFLE"
                    Then create the images.
                    That won't work. The indicator code draws the state of the images. The indicator code and images have to be located together or they won't update based on the indicator status.
                    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                    Comment


                    • #11
                      Originally posted by Sal R. View Post
                      Actually, you'd have to put the images in the "EMPTY" & "ON" layers, not "OFF" and "ON," to have the off and on image states.

                      /DEFINE LTINDATTIND01 656,548,031,022
                      I00,#LTINDATTIND01#,"RRSypheRExt_ATTInd"
                      IMG,#LTINDATTIND01#,"ind_att_2OFF.png",EMPTY
                      IMG,#LTINDATTIND01#,"ind_att_3ON.png",ON

                      All my common indicators are in an INC-type skin file. Just have to be careful that you don't have overlaps in your indicator codes in your INC file and the local button codes.
                      Using my above example... I only had to use the OFF & ON layers, most skinners make the EMPTY & OFF the same graphic anyway..

                      I also never thought of doing it like that either...good thinking. Though, still not as streamlined as the orig suggestion, which would do the same thing as using the img def but w/o all tha repeated data... would also allow for variables as well for the paths.
                      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


                      • #12
                        Originally posted by Blue ZX3 View Post
                        Using my above example... I only had to use the OFF & ON layers, most skinners make the EMPTY & OFF the same graphic anyway..

                        I also never thought of doing it like that either...good thinking. Though, still not as streamlined as the orig suggestion, which would do the same thing as using the img def but w/o all tha repeated data... would also allow for variables as well for the paths.
                        Since the skin is getting "patched" together, the IMG layer definition has to be specific.

                        Off status = Background + EMPTY
                        On status = Background + EMPTY + ON
                        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                        Comment


                        • #13
                          k, I have the orig idea coded, and will test tonight when I get home...
                          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
                            Is there a way to define "OnTop" or something like that, so the image will be on top of all other layers no matter what? Much like the album art does now. You do not need to define what layer you want the album art to show up on. It is an app area, I realize that, but this should be an "indicator area" and work the same.... right?
                            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

                            Working...
                            X