mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-09 16:18:22 +03:00
feat(ui): handle highlight color when loading XML for CSimpleEditBox
This commit is contained in:
1 file changed
+6
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user