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
| | |-+  help on new wps formatting
« previous next »
  • Print
Pages: [1]

Author Topic: help on new wps formatting  (Read 2051 times)

Offline hatchinatore

  • Member
  • *
  • Posts: 30
help on new wps formatting
« on: May 25, 2007, 03:52:51 PM »
i have this wps i made some time ago, what do i need to do to it to make it work on the new build. i heard there was something different with it, anyways here it is..

# Created by Hatchinatore
# Preload battery pics
%xl|g|battery0.bmp|29|4|
%xl|h|battery1.bmp|29|4|
%xl|i|battery2.bmp|29|4|
%xl|j|battery3.bmp|29|4|
%xl|k|battery4.bmp|29|4|
# Preload volume pics
%xl|a|volume0.bmp|5|5|
%xl|b|volume1.bmp|5|5|
%xl|c|volume2.bmp|5|5|
%xl|d|volume3.bmp|5|5|
%xl|e|volume4.bmp|5|5|
%xl|f|volume5.bmp|5|5|
# Preload progressbar pic
%P|progress.bmp|
# Preload song stat icons
%xl|l|play.bmp|84|105|
%xl|m|pause.bmp|84|105|
%xl|n|forward.bmp|84|105|
%xl|o|rewind.bmp|84|105|
# show battery
%?bl<%xdg|%xdh|%xdi|%xdj|%xdk> %ar%cl:MPc
# song info
%s%ac%it
%s%ac%ia
%s%ac%id
%al%pc%ac%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>> %ar%pt
# show song stat icons
%pb|75|30|146|


%?mp
# show volume
%?pv<%xda|%xdb|%xdc|%xdd|%xde|%xdf>
# Load & display background bitmap
%X|zeldaplay.bmp|
# no status bar
%wd


im not sure what i need to do, and by the way the two lines under the progress bar are because its big. if anyone wants this theme, ill be happy to upload it on a site (not this one because i cant go on irc at all)
thanks - hatch
Logged

Offline madsic

  • Member
  • *
  • Posts: 110
    • Vi har pander!
Re: help on new wps formatting
« Reply #1 on: May 25, 2007, 04:58:35 PM »
It's been some time since I adjusted my themes to the new 'strict' rules but I seem to recall that I needed to remove some spaces from lines containing pointy brackets (? the '<' and  '>' variety). Maybe in between? It'd be an easy thing to test, anyway...
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: help on new wps formatting
« Reply #2 on: May 25, 2007, 05:00:41 PM »
As far as I can see, you just need to change the RTC code:

%cl:MPc     changes to    %cl:%cM%cP

Other than that, I think this should work, most of my errors in my WPS's come from unclosed conditionals, or an extra % or ? in my tags. I'll test this on my sim, just to be sure though.
« Last Edit: May 25, 2007, 05:10:41 PM by evilg123 »
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: help on new wps formatting
« Reply #3 on: May 25, 2007, 05:15:00 PM »
I've ran this through my sim and it had a few issues with the conditionals, attached is the fixed version. Here's the details:

line 23:
%ar%cl:MPc
changes to:
%ar%cl:%cM%cP

line 28:
%al%pc%ac%?iy <%iy %?ig<   %ig|>|%?ig<%ig|no info>> %ar%pt
changes to
%al%pc%ac%?iy<%iy %?ig<   %ig| >|%?ig<%ig|no info>>  %ar%pt
(remove the space after %?iy)

and line 33:
comment out %?mp there are no arguments in this conditional. I assume that there are plans to actually put code in this line, but I needed to comment it out to satisfy the parser.

hope that helps, and good luck with the rest of the theme ;)

[attachment deleted by admin for age]
« Last Edit: May 25, 2007, 05:16:34 PM by evilg123 »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  help on new wps formatting
 

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

Page created in 0.072 seconds with 15 queries.