forked from len0rd/rockbox
New feature for the %xl (image load) tag. If you give it the filename __list_icons__ it will use the list icon strip instead of loading a different bmp.
example: %xl(I, __list_icons__, 0, 0) %xd(I, %Li) ^ display the list icon at position 0,0 in that viewport. (you can of course %xd(Ia) if you really wanted also.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27787 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d7900e330
commit
70ebe46d74
7 changed files with 43 additions and 8 deletions
|
@ -77,6 +77,16 @@ static int set_title_worker(char* title, enum themable_icons icon,
|
|||
/* Icon_NOICON == -1 which the skin engine wants at position 1, so + 2 */
|
||||
token->value.i = icon+2;
|
||||
}
|
||||
else if (element->params_count)
|
||||
{
|
||||
int i;
|
||||
for (i=0; i<element->params_count; i++)
|
||||
{
|
||||
if (element->params[i].type == CODE)
|
||||
retval |= set_title_worker(title, icon, data,
|
||||
element->params[i].data.code);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (element->children_count)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue