Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Question on using an image for an indicators status

  1. #1
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1

    Question 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. #2
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    Quote 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
    Quote 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

  3. #3
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  4. #4
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    Quote 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

  5. #5
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  6. #6
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    Quote 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

  7. #7
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

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

  9. #9
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    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

  10. #10
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote 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

Page 1 of 2 12 LastLast

Similar Threads

  1. Software Skinning Question
    By veetid in forum Software & Software Development
    Replies: 5
    Last Post: 07-22-2004, 02:48 PM
  2. Question Concerning fan wattage
    By Scorpnstail in forum General MP3Car Discussion
    Replies: 2
    Last Post: 03-31-2004, 06:49 PM
  3. Case fan modified. Safe?
    By cafn8 in forum Off Topic
    Replies: 7
    Last Post: 03-18-2004, 11:57 AM
  4. shuttle pc question
    By G35Pimp in forum General Hardware Discussion
    Replies: 7
    Last Post: 12-15-2003, 01:09 PM
  5. Thermaltake Fan Question
    By dbinnc in forum General Hardware Discussion
    Replies: 1
    Last Post: 07-26-2002, 09:06 PM

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
  •