From 3f8e7fc26fdecde65fb78de84e4df31df8c0e750 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 5 Aug 2010 11:28:48 +0000 Subject: 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 --- lib/skin_parser/tag_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/skin_parser') diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c index 26c049b..dccb9f8 100644 --- a/lib/skin_parser/tag_table.c +++ b/lib/skin_parser/tag_table.c @@ -167,7 +167,7 @@ static const struct tag_info legal_tags[] = { SKIN_TOKEN_DRAW_INBUILTBAR, "wi", "", SKIN_REFRESH_STATIC|NOBREAK }, { SKIN_TOKEN_IMAGE_PRELOAD, "xl", "SFII|I", 0|NOBREAK }, - { SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY, "xd", "S", 0 }, + { SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY, "xd", "S|TI", 0 }, { SKIN_TOKEN_IMAGE_DISPLAY, "x", "SFII", 0|NOBREAK }, { SKIN_TOKEN_LOAD_FONT, "Fl" , "IF", 0|NOBREAK }, -- cgit v1.1