| 556 | } |
| 557 | |
| 558 | void WindowStartTextbox(const WindowBase& callW, WidgetIndex callWidget, u8string existingText, int32_t maxLength) |
| 559 | { |
| 560 | if (_usingWidgetTextBox) |
| 561 | WindowCancelTextbox(); |
| 562 | |
| 563 | _usingWidgetTextBox = true; |
| 564 | _currentTextBox.window.classification = callW.classification; |
| 565 | _currentTextBox.window.number = callW.number; |
| 566 | _currentTextBox.widgetIndex = callWidget; |
| 567 | _textBoxFrameNo = 0; |
| 568 | |
| 569 | auto* windowMgr = GetWindowManager(); |
| 570 | windowMgr->CloseByClass(WindowClass::textinput); |
| 571 | |
| 572 | _textBoxInput = existingText; |
| 573 | |
| 574 | _textInput = ContextStartTextInput(_textBoxInput, maxLength); |
| 575 | } |
| 576 | |
| 577 | void WindowCancelTextbox() |
| 578 | { |
no test coverage detected