Support and General Use > Theming and Appearance Customization

Blank option for conditional with images

(1/2) > >>

Zivo:
hello Helpers

i have a Q

i m writing a WPS very nice by the way
i want to make the volume graphic

i want it to be 8 parts =  11~ DB for each part (image)
but i only want to use 7 images, as the first part is blank,nothing,empty.
i dont want to create a transparent bitmap because i prefer to use it for something else

i should i write it, this can be usefull for battery too

thats what i try
%?pv

Llorean:
1) "Q" is not a word. Please see the posting guidelines.
2) What is your question? When you try that, what happens, different from what you expect?

Zivo:
im sorry for the "Q"

lets say 6 images 7 parts

i expect to see nothing in the first part between 84 - 73 (no image/unload existing image)
then image1 between 72 - 61
then image2 between 60 - 49
then image3 between 48 - 37
then image4 between 36 - 25
then image5 between 24 - 13
then image6 between 12 - 0

insted i see only the pictures in a bigger gap

Yotto:
I don't understand what you mean by "insted i see only the pictures in a bigger gap" but I can answer this:

"(no image/unload existing image)"

Unless something has changed recently, rockbox will *NOT* unload an existing image if the conditional says "No image".  Think of the conditional not as loading an object to be displayed, but instead as painting an image on the screen.  If the conditional tells it to paint image1, it will.  If, later it tells it to paint no image, it will do that as well, leaving image1 up on the screen.

It's been a while since I have done images, so I may be wrong and/or could be remembering wrong, but the solution, if I am right, is to create a "blank" image and paint it instead of what you are doing now.

PaulJam:
Hi,

from the CustomWPS wiki (http://www.rockbox.org/twiki/bin/view/Main/CustomWPS):

--- Quote --- %pv     Current volume in decibels (dB). Can also be used in a conditional: %?pv[Mute|...|0 dB|Above 0 dB]
--- End quote ---
The first and the last two conditionals are handeled specially.

So i think to achieve your desired result the line should be:
%?pv

Navigation

[0] Message Index

[#] Next page

Go to full version