feat(ui): load gradients in CSimpleTexture::LoadXML

This commit is contained in:
fallenoak 2025-12-23 11:40:52 -06:00
parent 2fba6413bc
commit e1efaf8ba9
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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);
} }
} }