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

Function scrollMouseDown

src/OpenLoco/src/Ui/Windows/MapWindow.cpp:1158–1163  ·  view source on GitHub ↗

0x0046B97C

Source from the content-addressed store, hash-verified

1156
1157 // 0x0046B97C
1158 static void scrollMouseDown([[maybe_unused]] Window& self, int16_t x, int16_t y, [[maybe_unused]] uint8_t scrollIndex)
1159 {
1160 auto pos = mapWindowPosToLocation({ x, y });
1161
1162 moveMainViewToMapView(pos);
1163 }
1164
1165 // 0x0046B946
1166 static std::optional<FormatArguments> tooltip([[maybe_unused]] Window& self, [[maybe_unused]] WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id)

Callers

nothing calls this directly

Calls 2

mapWindowPosToLocationFunction · 0.85
moveMainViewToMapViewFunction · 0.85

Tested by

no test coverage detected