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

Function WindowTextInputRawOpen

src/openrct2-ui/windows/TextInput.cpp:375–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373 };
374
375 void WindowTextInputRawOpen(
376 WindowBase* call_w, WidgetIndex call_widget, StringId title, StringId description, const Formatter& descriptionArgs,
377 const_utf8string existing_text, int32_t maxLength)
378 {
379 auto* windowMgr = GetWindowManager();
380 windowMgr->CloseByClass(WindowClass::textinput);
381
382 auto w = windowMgr->Create<TextInputWindow>(
383 WindowClass::textinput, { kWindowSize.width, kWindowSize.height + 10 },
384 { WindowFlag::centreScreen, WindowFlag::stickToFront });
385 if (w != nullptr)
386 {
387 w->setParentWindow(call_w, call_widget);
388 w->setTitle(title, description, descriptionArgs);
389 w->setText(existing_text, maxLength);
390 }
391 }
392
393 void WindowTextInputOpen(
394 std::string_view title, std::string_view description, std::string_view initialValue, size_t maxLength,

Callers 15

RenameMethod · 0.85
OperatingLengthWindowMethod · 0.85
IncomeOnMouseUpMethod · 0.85
onMouseUpMethod · 0.85
ShowTextInputMethod · 0.85
onMouseUpEntranceMethod · 0.85
onMouseDownPriceMethod · 0.85
onMouseUpMethod · 0.85
InstallTrackDesignMethod · 0.85
OverviewMouseUpMethod · 0.85

Calls 5

GetWindowManagerFunction · 0.85
CloseByClassMethod · 0.80
setParentWindowMethod · 0.80
setTitleMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected