mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Merge pull request #4414 from Broxzier/extended_tile_inspector
Extended tile inspector
This commit is contained in:
@@ -1029,6 +1029,18 @@ void widget_scroll_get_part(rct_window *w, rct_widget *widget, int x, int y, int
|
||||
}
|
||||
}
|
||||
|
||||
void widget_set_enabled(rct_window *w, uint64 widgetIndex, bool enabled)
|
||||
{
|
||||
if (enabled) {
|
||||
w->enabled_widgets |= (1ULL << widgetIndex);
|
||||
w->disabled_widgets &= ~(1ULL << widgetIndex);
|
||||
}
|
||||
else {
|
||||
w->enabled_widgets &= ~(1ULL << widgetIndex);
|
||||
w->disabled_widgets |= (1ULL << widgetIndex);
|
||||
}
|
||||
}
|
||||
|
||||
void widget_set_checkbox_value(rct_window *w, int widgetIndex, int value)
|
||||
{
|
||||
if (value)
|
||||
|
||||
@@ -67,6 +67,7 @@ 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_enabled(rct_window *w, uint64 widgetIndex, bool enabled);
|
||||
void widget_set_checkbox_value(rct_window *w, int widgetIndex, int value);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user