Simplify code (getAttributeAsBool didn't have default-paramters in the past).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5633 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
09767f2541
commit
0c57deec15
|
@ -141,8 +141,7 @@ void CGUITab::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWrite
|
|||
setNumber(in->getAttributeAsInt("TabNumber"));
|
||||
setDrawBackground(in->getAttributeAsBool("DrawBackground"));
|
||||
setBackgroundColor(in->getAttributeAsColor("BackColor"));
|
||||
if ( in->existsAttribute("OverrideTextColorEnabled") )
|
||||
OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled");
|
||||
OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled", OverrideTextColorEnabled);
|
||||
setTextColor(in->getAttributeAsColor("TextColor"));
|
||||
|
||||
if (Parent && Parent->getType() == EGUIET_TAB_CONTROL)
|
||||
|
|
Loading…
Reference in New Issue