mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(ui): implement SetFocus and ClearFocus script methods (CSimpleEditBox)
This commit is contained in:
parent
03ba4ccbb1
commit
465b3844de
3 changed files with 18 additions and 2 deletions
|
|
@ -79,6 +79,13 @@ void CSimpleEditBox::SetKeyboardFocus(CSimpleEditBox* editBox) {
|
|||
editBox->m_dirtyFlags |= 0x4;
|
||||
}
|
||||
|
||||
void CSimpleEditBox::ClearKeyboardFocus(CSimpleEditBox* editBox, bool) {
|
||||
if (CSimpleEditBox::s_currentFocus == editBox) {
|
||||
CSimpleEditBox::s_currentFocus = nullptr;
|
||||
// TODO: CSimpleEditBox::OnFocusChange
|
||||
}
|
||||
}
|
||||
|
||||
CSimpleEditBox::CSimpleEditBox(CSimpleFrame* parent) : CSimpleFrame(parent) {
|
||||
this->m_autoFocus = 1;
|
||||
this->m_multiline = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue