1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Close #13780: Refactor MapGen to class (#19477)

This commit is contained in:
Michael Steenbeek
2023-03-01 09:26:30 +01:00
committed by GitHub
parent c38e9b59b0
commit 2a8872018b
3 changed files with 1000 additions and 998 deletions

View File

@@ -738,6 +738,11 @@ bool Window::IsWidgetPressed(WidgetIndex widgetIndex) const
return WidgetIsPressed(*this, widgetIndex);
}
void Window::SetWidgetEnabled(WidgetIndex widgetIndex, bool value)
{
WidgetSetEnabled(*this, widgetIndex, value);
}
void Window::SetWidgetDisabled(WidgetIndex widgetIndex, bool value)
{
WidgetSetDisabled(*this, widgetIndex, value);

View File

@@ -22,6 +22,7 @@ struct Window : WindowBase
void InvalidateWidget(WidgetIndex widgetIndex);
bool IsWidgetDisabled(WidgetIndex widgetIndex) const;
bool IsWidgetPressed(WidgetIndex widgetIndex) const;
void SetWidgetEnabled(WidgetIndex widgetIndex, bool value);
void SetWidgetDisabled(WidgetIndex widgetIndex, bool value);
void SetWidgetPressed(WidgetIndex widgetIndex, bool value);
void SetCheckboxValue(WidgetIndex widgetIndex, bool value);

File diff suppressed because it is too large Load Diff