mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
add options for finance and research on toolbar
This commit is contained in:
@@ -1113,3 +1113,11 @@ void widget_scroll_get_part(rct_window *w, rct_widget* widget, int x, int y, int
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void widget_set_checkbox_value(rct_window *w, int widgetIndex, int value)
|
||||
{
|
||||
if (value)
|
||||
w->pressed_widgets |= (1ULL << widgetIndex);
|
||||
else
|
||||
w->pressed_widgets &= ~(1ULL << widgetIndex);
|
||||
}
|
||||
@@ -63,4 +63,7 @@ int widget_is_pressed(rct_window *w, int widgetIndex);
|
||||
int widget_is_highlighted(rct_window *w, int widgetIndex);
|
||||
int widget_is_active_tool(rct_window *w, int widgetIndex);
|
||||
void widget_scroll_get_part(rct_window *w, rct_widget* widget, int x, int y, int *output_x, int *output_y, int *output_scroll_area, int *scroll_id);
|
||||
|
||||
void widget_set_checkbox_value(rct_window *w, int widgetIndex, int value);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user