Support and General Use > Theming and Appearance Customization
WPS images issue for volume indicator graphics: unequal distribution of images
Mikerman:
Just experimented, and if I use the first placeholder of the conditional for the 0 image, and the last three (yep, three), for the 10 image, I get a fairly decent distribution without the skipping of any number images. Â The 9 image still gets short-changed a bit more than the other images (all the other images get 4 or 5 volume levels; the 9 image only gets 3, while the 10 image gets 6 or 7 volume levels) but this certainly is better than images being skipped entirely.
I'm still not sure I understand the exact mechanics here, though, apart from my empirical testing ....
;)
mschneider:
Mikerman, quick question. Are you modifying the statusbar that's displayed during file browsing? Or just creating your own for the wps? Just asking.
EDIT: sorry, should have read your first post more thoroughly.
Mikerman:
I'm playing with a WPS I had set out (Marquee Nouveau in the WPS Gallery for the iRiver H1xx players), which has the Rockbox default status bar turned off and incorporates its own graphical control panel, including a battery indicator and volume indicator, etc. It's the latter that has causing the issue for me--I'm trying to make the volume indicator grow in length (or otherwise change) as volume increases, in a more-or-less continual fashion.
Mikerman:
Just to update what I've been finding, it appears that the volume conditional works as Llorean had noted, with the first and last 2 spaces reserved for the listed volume states (mute, 0 dB, and over 0 dB). The tag appears to be giving those reserved locations a single volume click, and then splitting all the other clicks between the number of positions used between.
One seeming glitch noted: the Simulator seems to have slightly different behavior than Rockbox on the player, and so what doesn't appear to work on the Simulator indeed may work on the player itself. (I found this out upon setting the code on the Simulator and then transferring it to my player, only to find some different results.)
DervishD:
Hi all :)
Sorry for being so late in the thread. One of the problems with the volume conditional in WPS is that the distribution in the "lineal" part (that is, excluding 0dB, >0dB and mute) was not being done correctly. I reported the problem and a correct function to map values linearly. Any recent build has the patch applied and the problem is fixed.
The problem caused the last items (the ones before the 0dB and >0dB items) in the conditional to not be used under certain conditions.
Raúl
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version