From e1efaf8ba9b81f1a2cef03a92233d7896bfa6a59 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 23 Dec 2025 11:40:52 -0600 Subject: [PATCH] feat(ui): load gradients in CSimpleTexture::LoadXML --- src/ui/simple/CSimpleTexture.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui/simple/CSimpleTexture.cpp b/src/ui/simple/CSimpleTexture.cpp index d22351f..929a565 100644 --- a/src/ui/simple/CSimpleTexture.cpp +++ b/src/ui/simple/CSimpleTexture.cpp @@ -349,11 +349,18 @@ void CSimpleTexture::LoadXML(XMLNode* node, CStatus* status) { wrapV = 1; } } + } else if (!SStrCmpI(child->GetName(), "Color", INT_MAX)) { LoadXML_Color(child, color); this->SetTexture(color); + } 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); } }