mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(ui): load gradients in CSimpleTexture::LoadXML
This commit is contained in:
1 file changed
+8
-1
@@ -349,11 +349,18 @@ void CSimpleTexture::LoadXML(XMLNode* node, CStatus* status) {
|
|||||||
wrapV = 1;
|
wrapV = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (!SStrCmpI(child->GetName(), "Color", INT_MAX)) {
|
} else if (!SStrCmpI(child->GetName(), "Color", INT_MAX)) {
|
||||||
LoadXML_Color(child, color);
|
LoadXML_Color(child, color);
|
||||||
this->SetTexture(color);
|
this->SetTexture(color);
|
||||||
|
|
||||||
} else if (!SStrCmpI(child->GetName(), "Gradient", INT_MAX)) {
|
} else if (!SStrCmpI(child->GetName(), "Gradient", INT_MAX)) {
|
||||||
// TODO
|
ORIENTATION orientation;
|
||||||
|
CImVector minColor = {};
|
||||||
|
CImVector maxColor = {};
|
||||||
|
LoadXML_Gradient(child, orientation, minColor, maxColor, status);
|
||||||
|
|
||||||
|
this->SetVertexGradient(orientation, minColor, maxColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user