forked from len0rd/rockbox
Skin variables for touchscreen targets (origional implementation by Jens Theeß)
%vs(name, [set|inc|dec], value [,max]) - name is the id, set sets the value, inc increments by value, dec decrements by value %vg(name) - get the current value %vl(name [,timeout]) - 'has it changed in [timeout]'? values start at 1 and are all reset to 1 on skin load git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29655 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
969381322d
commit
87aa86cedd
7 changed files with 200 additions and 17 deletions
|
|
@ -225,6 +225,11 @@ static const struct tag_info legal_tags[] =
|
|||
{ SKIN_TOKEN_REC_MINUTES, "Rn" , "", SKIN_REFRESH_DYNAMIC },
|
||||
{ SKIN_TOKEN_REC_HOURS, "Rh" , "", SKIN_REFRESH_DYNAMIC },
|
||||
|
||||
/* Skin variables */
|
||||
{ SKIN_TOKEN_VAR_SET, "vs", "SSI|I", SKIN_REFRESH_STATIC },
|
||||
{ SKIN_TOKEN_VAR_GETVAL, "vg", "S", SKIN_REFRESH_DYNAMIC },
|
||||
{ SKIN_TOKEN_VAR_TIMEOUT, "vl", "S|D", SKIN_REFRESH_DYNAMIC },
|
||||
|
||||
{ SKIN_TOKEN_UNKNOWN, "" , "", 0 }
|
||||
/* Keep this here to mark the end of the table */
|
||||
};
|
||||
|
|
|
|||
|
|
@ -265,7 +265,11 @@ enum skin_token_type {
|
|||
SKIN_TOKEN_HAVE_RDS,
|
||||
SKIN_TOKEN_RDS_NAME,
|
||||
SKIN_TOKEN_RDS_TEXT,
|
||||
|
||||
|
||||
/* Skin variables */
|
||||
SKIN_TOKEN_VAR_SET,
|
||||
SKIN_TOKEN_VAR_GETVAL,
|
||||
SKIN_TOKEN_VAR_TIMEOUT,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue