move Style XML saving/loading into StyleID
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user