forked from len0rd/rockbox
Add "%LN" tag to retrieve the list item number of the current item. This allows e.g. putting item numbers in skinned lists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30568 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e12a832758
commit
28d5f2aa57
5 changed files with 14 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ 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", "|IS", SKIN_REFRESH_DYNAMIC },
|
||||
{ SKIN_TOKEN_LIST_ITEM_NUMBER, "LN", "", SKIN_REFRESH_DYNAMIC },
|
||||
{ SKIN_TOKEN_LIST_TITLE_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 },
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ enum skin_token_type {
|
|||
SKIN_TOKEN_LIST_SELECTED_ITEM_CFG,
|
||||
SKIN_TOKEN_LIST_ITEM_IS_SELECTED,
|
||||
SKIN_TOKEN_LIST_ITEM_TEXT,
|
||||
SKIN_TOKEN_LIST_ITEM_NUMBER,
|
||||
SKIN_TOKEN_LIST_ITEM_ICON,
|
||||
SKIN_TOKEN_LIST_NEEDS_SCROLLBAR,
|
||||
SKIN_TOKEN_LIST_SCROLLBAR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue