From 226468f93d9ff8d163472df7bb3a411036eac713 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Fri, 3 Oct 2025 16:52:43 -0500 Subject: [PATCH] feat(ui): handle highlight color when loading XML for CSimpleEditBox --- src/ui/CSimpleEditBox.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/CSimpleEditBox.cpp b/src/ui/CSimpleEditBox.cpp index 4d50abc..4391676 100644 --- a/src/ui/CSimpleEditBox.cpp +++ b/src/ui/CSimpleEditBox.cpp @@ -681,7 +681,12 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) { } } else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) { - // TODO + CImVector highlightColor = {}; + if (LoadXML_Color(child, highlightColor)) { + for (auto& texture : this->m_highlight) { + texture->SetTexture(highlightColor); + } + } } else if (!SStrCmpI(child->GetName(), "TextInsets", STORM_MAX_STR)) { float left, right, top, bottom;