MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / onTextInput

Function onTextInput

src/OpenLoco/src/Ui/Windows/TitleMenu.cpp:345–356  ·  view source on GitHub ↗

0x004390ED

Source from the content-addressed store, hash-verified

343
344 // 0x004390ED
345 static void onTextInput([[maybe_unused]] Window& window, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, const char* input)
346 {
347 switch (widgetIndex)
348 {
349 case Widx::chat_btn:
350 sub_43918F(input);
351 break;
352 case Widx::multiplayer_toggle_btn:
353 multiplayerConnect(input);
354 break;
355 }
356 }
357
358 // 0x004390f8
359 static Ui::CursorId onCursor([[maybe_unused]] Window& window, [[maybe_unused]] WidgetIndex_t widgetIdx, [[maybe_unused]] const WidgetId id, [[maybe_unused]] int16_t xPos, [[maybe_unused]] int16_t yPos, Ui::CursorId fallback)

Callers

nothing calls this directly

Calls 2

sub_43918FFunction · 0.85
multiplayerConnectFunction · 0.85

Tested by

no test coverage detected