1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Name unknown_15 window event as ScrollSelect

Co-authored-by: leoleotte <leoleotte@users.noreply.github.com>
This commit is contained in:
Michael Steenbeek
2022-10-05 21:59:20 +02:00
committed by GitHub
parent c5904d81d6
commit 99e13e023e
5 changed files with 12 additions and 8 deletions

View File

@@ -1574,11 +1574,12 @@ void window_event_viewport_rotate_call(rct_window* w)
w->event_handlers->viewport_rotate(w);
}
void window_event_unknown_15_call(rct_window* w, int32_t scrollIndex, int32_t scrollAreaType)
void window_event_scroll_select_call(rct_window* w, int32_t scrollIndex, int32_t scrollAreaType)
{
if (w->event_handlers != nullptr)
if (w->event_handlers->unknown_15 != nullptr)
w->event_handlers->unknown_15(w, scrollIndex, scrollAreaType);
if (w->event_handlers == nullptr)
w->OnScrollSelect(scrollIndex, scrollAreaType);
else if (w->event_handlers->scroll_select != nullptr)
w->event_handlers->scroll_select(w, scrollIndex, scrollAreaType);
}
OpenRCT2String window_event_tooltip_call(rct_window* w, const WidgetIndex widgetIndex, const StringId fallback)