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

Function beginSendChatMessage

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

Source from the content-addressed store, hash-verified

397 }
398
399 void beginSendChatMessage(Window& self)
400 {
401 WindowManager::close(WindowType::multiplayer);
402
403 auto args = FormatArguments::common();
404 args.push(StringIds::the_other_player);
405
406 // TODO: convert this to a builder pattern, with chainable functions to set the different string ids and arguments
407 TextInput::openTextInput(&self, StringIds::chat_title, StringIds::chat_instructions, StringIds::empty, Widx::chat_btn, args);
408 }
409
410 static void sub_43918F(const char* string)
411 {

Callers 2

onMouseUpFunction · 0.70
sendMessageFunction · 0.50

Calls 4

commonFunction · 0.85
openTextInputFunction · 0.85
closeFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected