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

Function sendMessage

src/OpenLoco/src/Input/Shortcuts.cpp:550–582  ·  view source on GitHub ↗

0x004BF3DC

Source from the content-addressed store, hash-verified

548
549 // 0x004BF3DC
550 static void sendMessage()
551 {
552 if (SceneManager::isEditorMode())
553 {
554 return;
555 }
556
557 if (!SceneManager::isNetworked())
558 {
559 return;
560 }
561
562 if (SceneManager::isTitleMode())
563 {
564 auto* caller = WindowManager::find(WindowType::titleMenu);
565 if (caller == nullptr)
566 {
567 return;
568 }
569
570 Windows::TitleMenu::beginSendChatMessage(*caller);
571 }
572 else
573 {
574 auto* caller = WindowManager::find(WindowType::timeToolbar);
575 if (caller == nullptr)
576 {
577 return;
578 }
579
580 Windows::TimePanel::beginSendChatMessage(*caller);
581 }
582 }
583
584 static void constructionPreviousTab()
585 {

Callers

nothing calls this directly

Calls 5

isEditorModeFunction · 0.85
isNetworkedFunction · 0.85
isTitleModeFunction · 0.85
findFunction · 0.85
beginSendChatMessageFunction · 0.50

Tested by

no test coverage detected