diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-05 11:28:48 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-05 11:28:48 +0000 |
commit | 3f8e7fc26fdecde65fb78de84e4df31df8c0e750 (patch) | |
tree | 7f2c2d93d72d4f7a3dade4ccdd9a81433f5abe05 /wps/cabbiev2.176x220x16.wps | |
parent | 145571d9b5c2b6b1028fbb95388f933a3675ebfa (diff) | |
download | rockbox-3f8e7fc26fdecde65fb78de84e4df31df8c0e750.tar.gz rockbox-3f8e7fc26fdecde65fb78de84e4df31df8c0e750.zip |
New feature for the %xd() (display a preloaded image) skin tag.
It can now automatically load the correct subimage from a strip (assuming the strip is in the correct order) by giving a tag for the 2nd param.
example: %xd(F, %mp) which is equivilant to %?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)>
You can also set the subimage offset.. i.e %xd(E, %mm, -1) which means "show nothing for the first value of %mm and use the bitmap strip for the remaining values"
if a tag+offset is <0 or greater than the number of subimages in a strip he image is cleared (I'm open to changing this if someone has a better idea)
cabbiev2.176x220x16.wps is an example of how to use this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27717 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps/cabbiev2.176x220x16.wps')
-rw-r--r-- | wps/cabbiev2.176x220x16.wps | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wps/cabbiev2.176x220x16.wps b/wps/cabbiev2.176x220x16.wps index c0c7cfc827..7b20adf7cf 100644 --- a/wps/cabbiev2.176x220x16.wps +++ b/wps/cabbiev2.176x220x16.wps | |||
@@ -27,10 +27,10 @@ | |||
27 | %?C<%s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>|> | 27 | %?C<%s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>|> |
28 | 28 | ||
29 | %al %pc%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>%ar%pr | 29 | %al %pc%ac%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>%ar%pr |
30 | %?mh<%xd(Aa)|%xd(Ab)> | 30 | %xd(A, %mh) |
31 | %?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)|%xd(Bj)>> | 31 | %?bp<%?bc<%xd(Ba)|%xd(Bb)>|%?bl<|%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)|%xd(Bj)>> |
32 | %?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)|%xd(Cj)> | 32 | %?pv<%xd(Ca)|%xd(Cb)|%xd(Cc)|%xd(Cd)|%xd(Ce)|%xd(Cf)|%xd(Cg)|%xd(Ch)|%xd(Ci)|%xd(Cj)> |
33 | %?ps<%xd(D)> | 33 | %?ps<%xd(D)> |
34 | %?mm<|%xd(Ea)|%xd(Eb)|%xd(Ec)|%xd(Ed)> | 34 | %xd(E, %mm, -1) |
35 | %?mp<%xd(Fa)|%xd(Fb)|%xd(Fc)|%xd(Fd)|%xd(Fe)> | 35 | %xd(F, %mp) |
36 | %?C<%Cd> | 36 | %?C<%Cd> |