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

Function onMouseDown

src/OpenLoco/src/Ui/Windows/ToolbarTopCommon.cpp:520–548  ·  view source on GitHub ↗

0x0043A071

Source from the content-addressed store, hash-verified

518
519 // 0x0043A071
520 void onMouseDown(Window* window, WidgetIndex_t widgetIndex)
521 {
522 switch (widgetIndex)
523 {
524 case Widx::zoom_menu:
525 zoomMenuMouseDown(window, widgetIndex);
526 break;
527
528 case Widx::rotate_menu:
529 rotateMenuMouseDown(window, widgetIndex);
530 break;
531
532 case Widx::view_menu:
533 viewMenuMouseDown(window, widgetIndex);
534 break;
535
536 case Widx::terraform_menu:
537 terraformMenuMouseDown(window, widgetIndex);
538 break;
539
540 case Widx::road_menu:
541 roadMenuMouseDown(window, widgetIndex);
542 break;
543
544 case Widx::towns_menu:
545 townsMenuMouseDown(window, widgetIndex);
546 break;
547 }
548 }
549
550 void onOpen([[maybe_unused]] Window& window)
551 {

Callers

nothing calls this directly

Calls 6

zoomMenuMouseDownFunction · 0.85
rotateMenuMouseDownFunction · 0.85
viewMenuMouseDownFunction · 0.85
terraformMenuMouseDownFunction · 0.85
roadMenuMouseDownFunction · 0.85
townsMenuMouseDownFunction · 0.85

Tested by

no test coverage detected