move Style XML saving/loading into StyleID

This commit is contained in:
Chris Danford
2004-07-17 21:49:32 +00:00
parent 6fe94c6206
commit a6b5da3207
10 changed files with 201 additions and 23 deletions
+25
View File
@@ -625,6 +625,31 @@ bool XNode::GetXML( RageFile &f, LPDISP_OPT opt /*= &optDefault*/ )
return true;
}
//========================================================
// Name : GetValue
// Desc :
// Param :
// Return :
//--------------------------------------------------------
// Coder Date Desc
//========================================================
void XNode::SetValue(int v)
{
value = ssprintf("%d",v);
}
void XNode::SetValue(float v)
{
value = ssprintf("%f",v);
}
void XNode::SetValue(bool v)
{
value = ssprintf("%d",v);
}
void XNode::SetValue(unsigned v)
{
value = ssprintf("%u",v);
}
//========================================================
// Name : GetAttr
// Desc : get attribute with attribute name