mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): handle highlight color when loading XML for CSimpleEditBox
This commit is contained in:
parent
88eada90b2
commit
226468f93d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user