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

Function onMouseUp

src/OpenLoco/src/Ui/Windows/MessageWindow.cpp:85–98  ·  view source on GitHub ↗

0x0042A6F5

Source from the content-addressed store, hash-verified

83
84 // 0x0042A6F5
85 static void onMouseUp(Window& self, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id)
86 {
87 switch (widgetIndex)
88 {
89 case Common::widx::close_button:
90 WindowManager::close(&self);
91 break;
92
93 case Common::widx::tab_messages:
94 case Common::widx::tab_settings:
95 Common::switchTab(self, widgetIndex);
96 break;
97 }
98 }
99
100 // 0x0042A95A
101 static void onResize(Window& self)

Callers

nothing calls this directly

Calls 5

writeFunction · 0.85
invalidateWidgetFunction · 0.85
closeFunction · 0.70
switchTabFunction · 0.70
getFunction · 0.50

Tested by

no test coverage detected