forked from len0rd/rockbox
Theme Editor: Committed FS#11477 to add a DECIMAL parameter type in the parser and adapt the Theme Editor to accomodate the change by Johnathan Gordon. Fixed bug in the parser caused by the patch (error was thrown on zero value) and adapted tag rendering for new format
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27426 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
387af97a26
commit
15488a00ea
10 changed files with 107 additions and 50 deletions
|
@ -41,22 +41,22 @@ RBProgressBar::RBProgressBar(RBViewport *parent, const RBRenderInfo &info,
|
|||
|
||||
if(paramCount > 0 && params[0].type != skin_tag_parameter::DEFAULT)
|
||||
{
|
||||
x = params[0].data.numeric;
|
||||
x = params[0].data.number;
|
||||
}
|
||||
|
||||
if(paramCount > 1 && params[1].type != skin_tag_parameter::DEFAULT)
|
||||
{
|
||||
y = params[1].data.numeric;
|
||||
y = params[1].data.number;
|
||||
}
|
||||
|
||||
if(paramCount > 2 && params[2].type != skin_tag_parameter::DEFAULT)
|
||||
{
|
||||
w = params[2].data.numeric;
|
||||
w = params[2].data.number;
|
||||
}
|
||||
|
||||
if(paramCount > 3 && params[3].type != skin_tag_parameter::DEFAULT)
|
||||
{
|
||||
h = params[3].data.numeric;
|
||||
h = params[3].data.number;
|
||||
}
|
||||
|
||||
if(paramCount > 4 && params[4].type != skin_tag_parameter::DEFAULT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue