feat(ui): handle highlight color when loading XML for CSimpleEditBox

This commit is contained in:
fallenoak 2025-10-03 16:52:43 -05:00
parent 88eada90b2
commit 226468f93d
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -681,7 +681,12 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) {
} }
} else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) { } 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)) { } else if (!SStrCmpI(child->GetName(), "TextInsets", STORM_MAX_STR)) {
float left, right, top, bottom; float left, right, top, bottom;