diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-11 10:44:17 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-11 10:44:17 +0000 |
| commit | 3d0317a273a99f277d88c491181ba220db9dd2b0 (patch) | |
| tree | 53f10f49995065ec24aa5656d5c01dd76b8f88e1 /lib/skin_parser | |
| parent | 93a600fdab817ccfc2c8f9301d9190aed3552ad6 (diff) | |
| download | rockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.zip rockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.tar.gz rockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.tar.bz2 rockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.tar.xz | |
Rework how the skin gets the list item text to save some ram. Also allow the %LI and %LT tags to take 2 optional parameters to get a different items text/icon:
%LT(offset, nowrap) - get the text for the "being drawn"+offset item (offset being + or -). if the second param is "nowrap" (Without quotes) the text will be blank if the item would need to wrap. Same for the icon
e.g:
%LT(-1)
%LT <<
%LT(1, nowrap)
will display:
Four
Five <<
Six (or nothing if Five is the last item)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser')
| -rw-r--r-- | lib/skin_parser/tag_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c index b93aa28..aa18dd4 100644 --- a/lib/skin_parser/tag_table.c +++ b/lib/skin_parser/tag_table.c @@ -188,9 +188,9 @@ static const struct tag_info legal_tags[] = { SKIN_TOKEN_VIEWPORT_CUSTOMLIST, "Vp" , "IC", SKIN_REFRESH_DYNAMIC|NOBREAK }, { SKIN_TOKEN_LIST_TITLE_TEXT, "Lt" , "", SKIN_REFRESH_DYNAMIC }, - { SKIN_TOKEN_LIST_ITEM_TEXT, "LT", "", SKIN_REFRESH_DYNAMIC }, + { SKIN_TOKEN_LIST_ITEM_TEXT, "LT", "|IS", SKIN_REFRESH_DYNAMIC }, { SKIN_TOKEN_LIST_TITLE_ICON, "Li" , "", SKIN_REFRESH_DYNAMIC }, - { SKIN_TOKEN_LIST_ITEM_ICON, "LI", "", SKIN_REFRESH_DYNAMIC }, + { SKIN_TOKEN_LIST_ITEM_ICON, "LI", "|IS", SKIN_REFRESH_DYNAMIC }, { SKIN_TOKEN_LIST_ITEM_CFG, "Lb" , "Sii|S", SKIN_REFRESH_STATIC }, { SKIN_TOKEN_LIST_ITEM_IS_SELECTED, "Lc" , "", SKIN_REFRESH_DYNAMIC }, { SKIN_TOKEN_LIST_NEEDS_SCROLLBAR, "LB", BAR_PARAMS, SKIN_REFRESH_DYNAMIC }, |