Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  %mv tag
« previous next »
  • Print
Pages: [1]

Author Topic: %mv tag  (Read 2677 times)

Offline afruff23

  • Member
  • *
  • Posts: 171
%mv tag
« 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.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: %mv tag
« Reply #1 on: October 09, 2008, 10:35:21 PM »
Why aren't you displaying the album art in a viewport?
Logged

Offline afruff23

  • Member
  • *
  • Posts: 171
Re: %mv tag
« Reply #2 on: October 09, 2008, 10:48:27 PM »
Quote from: Llorean on October 09, 2008, 10:35:21 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
« Last Edit: October 09, 2008, 10:53:28 PM by afruff23 »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  %mv tag
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.166 seconds with 22 queries.