Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: flackend on June 09, 2009, 05:36:30 AM

Title: Help with viewports
Post by: flackend on June 09, 2009, 05:36:30 AM
Hi,
I'm trying to make a wps that displays the volume only when the volume is being changed, but nothing is being displayed.

line 1   %Vl|a|0|0|50|50|1|ffffff|000000|
line 2   %?pv<mute|1|2|3|4|5|6|7|8|9|10>
line 3
line 4   %V|0|0|50|50|1|ffffff|000000|
line 5   %?mv<%Vda|>

I've gotten the %mv and %pv tags to work separately, and my syntax doesn't break, but something is wrong with the viewports -- I'm unsure of how to set them up!

Here's a screenshot of what I have so far:
(http://farm4.static.flickr.com/3303/3609746551_528b597377_o.jpg)
Title: Re: Help with viewports
Post by: ZincAlloy on June 09, 2009, 06:21:27 AM
give the second viewport an identifier and specify it in the conditional tag.

or get rid of the conditional viewport. you don't need it. just put the %?pv tag into the %mv conditional.
Title: Re: Help with viewports
Post by: flackend on June 09, 2009, 01:23:30 PM
It worked, thanks!

line 1   %V|0|0|60|60|1|ffffff|000000|
line 2   %?mv<%?pv<mute|1|2|3|4|5|6|7|8>|>