MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowUpdateTextbox

Function WindowUpdateTextbox

src/openrct2-ui/interface/Window.cpp:602–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600 }
601
602 void WindowUpdateTextbox()
603 {
604 if (_usingWidgetTextBox)
605 {
606 _textBoxFrameNo = 0;
607 auto* windowMgr = GetWindowManager();
608 WindowBase* w = windowMgr->FindByNumber(_currentTextBox.window.classification, _currentTextBox.window.number);
609 windowMgr->InvalidateWidget(*w, _currentTextBox.widgetIndex);
610 w->onTextInput(_currentTextBox.widgetIndex, _textBoxInput);
611 }
612 }
613 const TextInputSession* GetTextboxSession()
614 {
615 return _textInput;

Callers 1

HandleMessageMethod · 0.85

Calls 4

GetWindowManagerFunction · 0.85
InvalidateWidgetMethod · 0.80
FindByNumberMethod · 0.45
onTextInputMethod · 0.45

Tested by

no test coverage detected