1
0
Fork 0
forked from len0rd/rockbox

FS#9477 - new WPS tag (%mo) which lets the WPS have different "modes" which are changed with the usual "back to browser" button (This button is ONLY stolen if the WPS you use uses this tag.

an example use:
%?mo<one|two|three>
meaning that when the WPS is first opened "one" will be displayed, pressing select will change it to showing two, pressing it again will show three, and once more will go back to showing one. The text there could be any wps tags (conditional viewports for example...)
There is no real limit on the amount of modes, but remember that if you create a WPS which uses this tag more than once that every use HAS to have the same amount of choices or bad things will happen.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19110 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-11-16 09:38:15 +00:00
parent db5965ff9e
commit 76d2dd9c0e
5 changed files with 53 additions and 8 deletions

View file

@ -435,6 +435,9 @@ static char *get_token_desc(struct wps_token *token, struct wps_data *data,
snprintf(buf, bufsize, "Volume button timeout:%d",
token->value.i);
break;
case WPS_TOKEN_VIEWMODE:
snprintf(buf, bufsize, "viewmode");
break;
default:
snprintf(buf, bufsize, "FIXME (code: %d)",
token->type);