mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): load gradients in CSimpleTexture::LoadXML
This commit is contained in:
parent
2fba6413bc
commit
e1efaf8ba9
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user