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

Function toolCursor

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

0x004B50CE

Source from the content-addressed store, hash-verified

3609
3610 // 0x004B50CE
3611 static Ui::CursorId toolCursor(Window& self, const int16_t x, const int16_t y, const Ui::CursorId fallback, bool& out)
3612 {
3613 const auto args = getRouteInteractionFromCursor(self, x, y);
3614 out = args.type != Ui::ViewportInteraction::InteractionItem::noInteraction;
3615 if (out)
3616 {
3617 return CursorId::inwardArrows;
3618 }
3619 return fallback;
3620 }
3621
3622 // 0x004B4D9B
3623 static void getScrollSize(Ui::Window& self, [[maybe_unused]] const uint32_t scrollIndex, [[maybe_unused]] int32_t& scrollWidth, int32_t& scrollHeight)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected