Support and General Use > Theming and Appearance Customization
(SOLVED)Having no luck with %xl and %xd
KiyoshiKatu:
Also, just in case the image is the issue, here's what I have been trying to use. I have it resting in /.rockbox/wps/abstract/abstract_vol.bmp
[Saint]:
--- Quote from: RockBoxFan on January 09, 2013, 02:35:05 PM ---Of course, abstract_vol.bmp must exist, have 13 images, fit in the viewport, etc....
--- End quote ---
Actually, only the first criteria there is true.
The image is just a bitmap, you tell the skin engine how many portions to divide it into, which is completely arbitrary as long as you don't attempt to make a call to display a sub-image that doesn't exist. For example, trying to do:
--- Code: ---#New style
%xl(foo, foo.bmp, 0, 0, 10)
%xd(foo, 11)
--- End code ---
--- Code: ---#Old style
%xl(A, foo.bmp, 0, 0, 10)
%xd(Ak)
--- End code ---
...that will fail.
Images don't care if they fit in the viewport, either. With the exception of backdrops and the default (full-screen) viewport (a backdrop must be no smaller than, and no larger than, full-screen).
I'm not playing Internet King here, just clearing up some things for the greater good.
[Saint]
RockBoxFan:
Thanks for the clarification. You're way more familiar with this than I am!
Sorry, I don't think I can help. I'm not familiar with the -10 y value. Does that count up from the bottom, instead of down from the top?
When in doubt, I throw EVERYTHING out ("<SNIP>" section), keeping only the code in question. Pare it down to something that works, then slowly build it back up again...
KiyoshiKatu:
Yes, -10 is for the Y coordinate, which tells it to start 10 pixels from the lower border.
While I haven't excluded the rest of the code or anything, I have commented out just the line for the volume bar, which immediately makes the whole rest of the skin work, which is why I'm assuming that I have done something wrong in that tag. That being said, I'll definitely go give it a shot and see what happens if I leave out the rest of the tags in the wps file.
Edit: Just gave it a try, same result. Commented out every single line in the wps except for the %wd tag and the %xl and %xd tags that are in question. WPS still crashes to default wps skin.
RockBoxFan:
I've reached the level of my incompetence. Sorry, I don't have any more suggestions other than to try it on an actual device, or to upgrade the simulator.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version