Question on using an image for an indicators status

09-22-2009, 11:40 PM

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.

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

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:

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

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?

Comment

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

Comment

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

Comment

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.

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.

Comment

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.

Comment

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?