1
0
Fork 0
forked from len0rd/rockbox

skin_engine: ease the restrictions on %x/%xl

%x and %xl only require the id and filename now.
If you leave off the x,y it will default to 0,0.
If you want to use the default x,y you can still put in the
num_subimages param on the end (e.g %xl(a, file, 3) )

Change-Id: I8eff793dfdd037e302ace8deec9dc16dcea264a7
This commit is contained in:
Jonathan Gordon 2012-02-29 00:07:16 +11:00
parent 34031cba5b
commit 1c1e1c070c
3 changed files with 27 additions and 24 deletions

View file

@ -369,19 +369,19 @@ Examples:
& Load and set a backdrop image for the WPS.
This image must be exactly the same size as your LCD.\\
}%
\config{\%x(n,filename,x,y)}
\config{\%x(n,filename[,x,y])}
& Load and display an image\newline
\config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\newline
\config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\newline
\config{x}: x coordinate\newline
\config{y}: y coordinate.\\
\config{\%xl(n,filename,x,y,\tabnlindent[nimages])}
\config{x}: x coordinate (defaults to 0 if both x and y are not specified)\newline
\config{y}: y coordinate. (defaults to 0 if both x and y are not specified)\\
\config{\%xl(n,filename,[x,y],\tabnlindent[nimages])}
& Preload an image for later display (useful for when your images are displayed conditionally).\newline
\config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\newline
\config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\newline
If the filename is ``\_\_list\_icons\_\_'' the list icon bitmap will be used instead\newline
\config{x}: x coordinate\newline
\config{y}: y coordinate\newline
\config{x}: x coordinate (defaults to 0 if both x and y are not specified)\newline
\config{y}: y coordinate. (defaults to 0 if both x and y are not specified)\\
\config{nimages}: (optional) number of sub-images (tiled vertically, of the same height)
contained in the bitmap. Default is 1.\\
\config{\%xd(n[i] [,tag] [,offset])} & Display a preloaded image.