Support and General Use > Theming and Appearance Customization

What am I doing wrong?

(1/2) > >>

BakaKotani:
My wps code is:

%X|bg.bmp|
%xl|a|Play.bmp|50|50|
%xl|b|Pause.bmp|50|50|
%xl|c|FastForward|50|50|
%xl|d|FastRew|50|50|
%V|15|33|209|220|1|FFFFFF|000000|
%alNow Playing: %ar%pp of %pe

%ac%it
%ac%ia
%ac%id

%al  %pc %ar%pt 
%pb|4|5|202|
%?mp<%xdb|%xda|%xdb|%xdc|%xdd>

I get the default wps.  I tried making the file with notepad, wordpad and notepad++.

I got it to work mostly... but now my background image isn't being displayed.

robin0800:
The progress bar %pb needs a y position number, a fourth variable if you like.

pixelma:
That's not true, robin0800. The progressbar variables are all optionally - even with no variables specified you'll get the progressbar - with a default height (7 pixels if I remember correctly), using the full width of the display at the position of the %pb line in the WPS.

BakaKotani,
I can't see anything wrong in your code and you said later that you got it working. As for the backdrop issue, there are only 2 possibilities I can think of: either the specified bitmap doesn't exist in the correct folder (but it should fall back to the built-in text only WPS you saw first) - or the bitmap you are trying to use as background doesn't meet the requirements. Maybe it's not the correct size (which is the most important requirement)? You can only use bitmaps as a real backdrop (with the "%X" tag) which are exactly the size of the display you want to use them with. What player do you code this for?

hhannah:

--- Quote from: BakaKotani on April 27, 2008, 02:26:18 AM ---%xl|c|FastForward|50|50|
%xl|d|FastRew|50|50|

--- End quote ---

I just noticed that the ffw & rew images don't have the .bmp extension, they should be

%xl|c|FastForward.bmp|50|50|
%xl|d|FastRew.bmp|50|50|

That is something that has to be corrected for sure.
If you ask in the forums for help on your code, people will logically tend to check if the code instructions themselves are wrong; since this problem is not code related, you could have noticed it yourself by just checking more carefully


Note: Not that it is related to your problem, but when you get your WPS working, after that, check examples 1 (what you've done) and 1a (what you could do) here http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Images , to learn the use of bitmap strips, it's a very useful concept, and it seems to apply perfectly to your design, since you are using four changing images (play, ffw, rew, pause) that go in the same position.

BakaKotani:
@hhanah:
I noticed that and fixed it.  Thanks for pointing it out though.

@pixelma:
The bitmap exists and it is the right size.  I'm making this for the GigabeatF.

Navigation

[0] Message Index

[#] Next page

Go to full version