Move and Rename reading of SColorF

This commit is contained in:
Flamefire committed 2014-10-09 23:27:32 +02:00
1 parent a2720c2108
commit 4efd670747
5 files changed
+20 -20

No files matched your search

-11
View File
@@ -57,17 +57,6 @@ namespace VocaluxeLib.Xml
}
}
public bool TryGetColorFromRGBA(string xPath, out SColorF value)
{
value = new SColorF();
bool result = true;
result &= TryGetNormalizedFloatValue(xPath + "/R", ref value.R);
result &= TryGetNormalizedFloatValue(xPath + "/G", ref value.G);
result &= TryGetNormalizedFloatValue(xPath + "/B", ref value.B);
result &= TryGetNormalizedFloatValue(xPath + "/A", ref value.A);
return result;
}
public override bool GetValue(string xPath, out string value, string defaultValue = "")
{
int resultCt = 0;