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

Function scrollModalRight

src/OpenLoco/src/Ui/ScrollView.cpp:491–502  ·  view source on GitHub ↗

Based on 0x004C8689

Source from the content-addressed store, hash-verified

489
490 // Based on 0x004C8689
491 void scrollModalRight(const int16_t x, const int16_t y, Ui::Window& window, Ui::Widget* const widget, [[maybe_unused]] const WidgetIndex_t widgetIndex)
492 {
493 auto res = getPart(window, widget, x, y);
494
495 _currentScrollArea = res.area;
496 _currentScrollIndex = res.index;
497
498 if (res.area == Ui::ScrollPart::view)
499 {
500 window.callScrollMouseDown(res.scrollviewLoc.x, res.scrollviewLoc.y, static_cast<uint8_t>(res.index));
501 }
502 }
503
504 // 0x004C72ED
505 void clearPressedButtons(const WindowType type, const WindowNumber_t number, const WidgetIndex_t widgetIndex)

Callers 1

stateNormalRightFunction · 0.85

Calls 2

getPartFunction · 0.85
callScrollMouseDownMethod · 0.80

Tested by

no test coverage detected