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

Function onToolUpdate

src/OpenLoco/src/Ui/Windows/Vehicle.cpp:849–856  ·  view source on GitHub ↗

0x004B2545

Source from the content-addressed store, hash-verified

847
848 // 0x004B2545
849 static void onToolUpdate(Window& self, const WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, const int16_t x, const int16_t y)
850 {
851 if (widgetIndex != widx::pickup)
852 {
853 return;
854 }
855 Common::pickupToolUpdate(self, x, y);
856 }
857
858 // 0x004B2550
859 static void onToolDown(Window& self, const WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, const int16_t x, const int16_t y)

Callers

nothing calls this directly

Calls 1

pickupToolUpdateFunction · 0.85

Tested by

no test coverage detected