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

Function verticalNudgeUp

src/OpenLoco/src/Ui/ScrollView.cpp:385–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 void verticalNudgeUp(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex)
386 {
387 window.scrollAreas[scrollAreaIndex].contentOffsetY = std::max(window.scrollAreas[scrollAreaIndex].contentOffsetY - kButtonClickStep, 0);
388 ScrollView::updateThumbs(window, widgetIndex);
389 WindowManager::invalidateWidget(window.type, window.number, widgetIndex);
390 }
391
392 // 0x004C8B26
393 static void vButtonTop(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex)

Callers 2

vButtonTopFunction · 0.85
scrollDragFunction · 0.85

Calls 2

updateThumbsFunction · 0.85
invalidateWidgetFunction · 0.85

Tested by

no test coverage detected