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

Function onMouseUp

src/OpenLoco/src/Ui/Windows/TileInspector.cpp:481–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479 }
480
481 static void onMouseUp(Ui::Window& self, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id)
482 {
483 switch (widgetIndex)
484 {
485 case widx::close:
486 WindowManager::close(self.type);
487 break;
488
489 case widx::select:
490 activateMapSelectionTool(self);
491 break;
492 }
493 }
494
495 static void onMouseDown(Ui::Window& self, const WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id)
496 {

Callers

nothing calls this directly

Calls 2

activateMapSelectionToolFunction · 0.85
closeFunction · 0.70

Tested by

no test coverage detected