This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11593 - %Vf/%Vb (viewport colours) not working in conditionals
Attached to Project:
Rockbox
Opened by Marianne Arnold (pixelma) - Tuesday, 31 August 2010, 20:22 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 13 October 2010, 11:47 GMT+2
Opened by Marianne Arnold (pixelma) - Tuesday, 31 August 2010, 20:22 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 13 October 2010, 11:47 GMT+2
|
DetailsThe colour parameters were made independent of the viewport definitions not long ago which was supposed to give the opportunity to e.g. change the line colour within the viewport - and I asked in IRC - should also have given the opportunity to put the colours in conditionals (e.g. you could make the volume display turn red if volume is set to above 0dB etc.).
I tried this because it would greatly simplify my WPS which uses these "indicator" colours but gets the effect with the help of conditional viewports for now. For a first try I only wrote the following test.wps which should display the word "Test" in magenta if the hold switch is off and in cyan if it is on: --- %wd %V(0,0,-,30,1)%?mh<%Vf(00FFFF)|%Vf(FF00FF)> Test (also tried putting the %?mh conditional on its own line) --- When entering the WPS (hold off), the magenta "Test" is displayed correcty, if I switch hold the text disappears and won't come back anymore however often I switch hold on or off. This was tested in an X5 sim but also with grey shades in an M5 sim and on target. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Wednesday, 13 October 2010, 11:47 GMT+2
Reason for closing: Fixed
Additional comments about closing: in r28266
Wednesday, 13 October 2010, 11:47 GMT+2
Reason for closing: Fixed
Additional comments about closing: in r28266
My new test.wps looks as follows: http://pastebin.com/W43dnVAd but it didn't work. The TTT or GGG inside the conditional but behind the %Vf tags didn't show up at all but I'm not sure if they should. The foreground greyshade didn't change, it just stayed black (0).