Support and General Use > Theming and Appearance Customization

Help with WPS syntax

(1/2) > >>

slash89:
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

Chronon:
You have only loaded images, you haven't put in any display codes (e.g. %xd*).

MarcGuay:
Also, I believe the %P tag has been deprecated.  See the CustomWPS page for the most up-to-date syntax.

slash89:
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.

Chronon:
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: ---%we|pb.bmp|
--- End code ---

as does this:

--- Code: ---%pb%pf
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version