Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: afruff23 on October 09, 2008, 10:27:16 PM

Title: %mv tag
Post by: afruff23 on October 09, 2008, 10:27:16 PM
I'm trying to incorporate this tag into a wps (specifically a conditonal of it. Here is the pertinent code:
Code: [Select]
%wd
%X|bg.bmp|
%Cl|50|146|140|140|
%?mv<%?C<%C|%?Fm<%Vda>>|%?Fm<%Vda>>
%Vl|a|25|160|215|81|-|-|-|
%s%al%?In<%In.>%?It<%It|%Fn>
%s%al%?Ia<%Ia|%D2>
%s%al%?Ik<%Ik.>%?Id<%Id|%D1>
%s%al%?Ig<%Ig >%?Iy<%Iy>
%al%Fbkbps %?Fv<VBR>%ac%Fc%ar%FsKB

This is the logic of the code:
Code: [Select]
Is the volume changing?
       Yes
            Is there album art?
                  Yes
                     Display album art
                  No
                     Display info about the next track if available
       No
            Display info about the next track if available

If you haven't noticed, the album art and next track info viewport have overlaps in their positioning. What I want the code to do is to display the album art and not display the next track info when the command "display album art" comes up. What actually happens instead is that the next track info is visible beneath the album art.
Title: Re: %mv tag
Post by: Llorean on October 09, 2008, 10:35:21 PM
Why aren't you displaying the album art in a viewport?
Title: Re: %mv tag
Post by: afruff23 on October 09, 2008, 10:48:27 PM
Why aren't you displaying the album art in a viewport?

Thanks. I figured that out after some testing. As for why I wasn't displaying it in a viewport, for some reason it worked for my older theme in a different context. If you're curious as to which theme I'm referring to, look for the Next theme for the Gigabeat.

EDIT:
Here is the fixed code if anybody wants it.
Code: [Select]
%wd
%X|bg.bmp|
%Cl|50|0|140|140|
%?mv<%?C<%Vdb|%?Fm<%Vda>>|%?Fm<%Vda>>
%Vl|a|25|160|215|81|-|-|-|
%s%al%?In<%In.>%?It<%It|%Fn>
%s%al%?Ia<%Ia|%D2>
%s%al%?Ik<%Ik.>%?Id<%Id|%D1>
%s%al%?Ig<%Ig >%?Iy<%Iy>
%al%Fbkbps %?Fv<VBR>%ac%Fc%ar%FsKB
%Vl|a|0|146|240|14|-|-|-|
%Vl|a|0|241|240|45|-|-|-|
%Vl|b|0|146|240|140|-|-|-|
%C