Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Upcoming New skin feature: skin variables (FS#11998)

Re: Upcoming New skin feature: skin variables (FS#11998)

From: Marcin Bukat <marcin.bukat_at_gmail.com>
Date: Tue, 8 Mar 2011 13:41:38 +0100

2011/3/8 Jonathan Gordon <jdgordy_at_gmail.com>:

> OK, finally, proper explanation of the 3 new tags:
>
> %vs(label, action, value, [max]) : label is the unique id of this
> variable. action is one of "set", "inc", "dec". "set" means "x=value",
> "inc" is x = x+ value, "dec" is x = x - value.  vars are always
> initalised to 1 on load.  max is optional and means the last value
> before rolling back to 1 (or with the dec action the value to set to
> after decrementing from 1).

Is there particular reason that vars are 1 based instead of 0 based
(as we used to coding in most programming languages)?

Marcin
Received on 2011-03-08


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa