feat(ui): handle bytes attr in CSimpleEditBox::LoadXML

This commit is contained in:
fallenoak 2025-10-03 15:31:49 -05:00
parent 76bc57edb5
commit 88eada90b2
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -673,8 +673,11 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) {
if (bytesAttr && *bytesAttr) { if (bytesAttr && *bytesAttr) {
int32_t bytes = SStrToInt(bytesAttr); int32_t bytes = SStrToInt(bytesAttr);
// TODO if (bytes <= 0) {
// - set some member of CSimpleEditBox this->m_textLength = -1;
} else {
this->m_textLength = bytes - 1;
}
} }
} else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) { } else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) {