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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help with WPS syntax
« previous next »
  • Print
Pages: [1]

Author Topic: Help with WPS syntax  (Read 2273 times)

Offline slash89

  • Member
  • *
  • Posts: 2
Help with WPS syntax
« on: June 30, 2008, 04:17:18 PM »
Hey guys! I'm new here and well to Rockbox in general. I was suggested to it by a friend from camp and was instantly turned on by it (no not in that way...). Anyway being the photoshoper that I am - I just had to create my own theme. I've got it all done, but somethings messy with my code as none of my images are showing up or such. Check this out and give me some help if you can please:

%X|back.bmp|
%P|pb.bmp|
%xl|A|play.bmp|128|79|
%xl|B|pause.bmp|133|77|
%xl|C|rewind.bmp|123|77|
%xl|D|stop.bmp|130|79|
%xl|E|ffwd.bmp|126|77|
%xl|F|shuffle.bmp|19|3|
%xl|G|repeat.bmp|1|3|
%xl|H|lock.bmp|41|0|
%xl|I|lock_remote.bmp|41|0|
%xl|J|bat_full.bmp|135|3|
%xl|K|bat_80.bmp|135|3|
%xl|L|bat_60.bmp|135|3|
%xl|M|bat_40.bmp|135|3|
%xl|N|bat_20.bmp|135|3|
%xl|O|bat_empty.bmp|135|3|
%pb%pf
%ac%ia
%ac%it
%ac%id
%s%ac%Ia%It
« Last Edit: July 01, 2008, 12:54:10 AM by MarcGuay »
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: I could use some help...
« Reply #1 on: June 30, 2008, 04:30:04 PM »
You have only loaded images, you haven't put in any display codes (e.g. %xd*).
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: I could use some help...
« Reply #2 on: June 30, 2008, 04:40:16 PM »
Also, I believe the %P tag has been deprecated.  See the CustomWPS page for the most up-to-date syntax.
Logged

Offline slash89

  • Member
  • *
  • Posts: 2
Re: I could use some help...
« Reply #3 on: June 30, 2008, 08:55:09 PM »
Ok, been messing around with it and I thought I had it correct, but the images are still not showing up...

%X|back.bmp|
%we|pb.bmp|
%xl|A|play.bmp|128|79|
%xl|B|pause.bmp|133|77|
%xl|C|rewind.bmp|123|77|
%xl|D|stop.bmp|130|79|
%xl|E|ffwd.bmp|126|77|
%xl|F|shuffle.bmp|19|3|
%xl|G|repeat.bmp|1|3|
%xl|H|lock.bmp|41|0|
%xl|I|lock_remote.bmp|41|0|
%xl|J|bat_full.bmp|135|3|
%xl|K|bat_80.bmp|135|3|
%xl|L|bat_60.bmp|135|3|
%xl|M|bat_40.bmp|135|3|
%xl|N|bat_20.bmp|135|3|
%xl|O|bat_empty.bmp|135|3|
%pb|pb.bmp|1|101|155|10|
%pb%pf
%ac%ia
%ac%it
%ac%id
%s%ac%Ia%It
%?mn<%xdg>
%?mh<%xdh>
%?mr<%xdi>
%?mm<%xdg|%xdg|%xdg|%xdg|>
%?mp<%xdd|%xda|%xdb|%xde|%xde>

Sorry and thanks for being patient with me - I'm new.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: I could use some help...
« Reply #4 on: June 30, 2008, 09:05:18 PM »
I would advise either of two things.  Start off simply with a WPS that only loads a single image to see how that works.  Then you can try conditionals and alternating subllnes and such in a similar way.  Once you're confident that you know how the tags work you can try to integrate them into a WPS. 

Alternatively, you could start with a working theme as a starting point and introduce simple changes from there.  The first method might be more instructive.

However, I will say that this bit looks fishy:
Code: [Select]
%we|pb.bmp|

as does this:
Code: [Select]
%pb%pf
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Hweb21

  • Member
  • *
  • Posts: 164
Re: I could use some help...
« Reply #5 on: June 30, 2008, 11:52:16 PM »
Its case sensitive.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Help with WPS syntax
« Reply #6 on: July 01, 2008, 10:38:46 AM »
both the above posts are correct...
%we enables the statusbar iirc.
%pb%pf is just wrong... the %pb line before that is all thats needed for the progressbar (not sure whaat %pf does)
and the %xd tags are case sensitive...

I Strongly suggest you have a look at http://www.rockbox.org/twiki/bin/view/Main/CustomWPS
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help with WPS syntax
 

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

Page created in 0.09 seconds with 15 queries.