1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-23 04:04:09 +01:00

Codechange: Use EnumBitSet for WindowDefaultFlags.

This commit is contained in:
Peter Nelson
2025-01-29 23:36:47 +00:00
committed by Peter Nelson
parent efb05396a7
commit d30e8dd1c1
63 changed files with 184 additions and 183 deletions

View File

@@ -350,7 +350,7 @@ public:
static WindowDesc _town_authority_desc(
WDP_AUTO, "view_town_authority", 317, 222,
WC_TOWN_AUTHORITY, WC_NONE,
0,
{},
_nested_town_authority_widgets
);
@@ -651,7 +651,7 @@ static constexpr NWidgetPart _nested_town_game_view_widgets[] = {
static WindowDesc _town_game_view_desc(
WDP_AUTO, "view_town", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
0,
{},
_nested_town_game_view_widgets
);
@@ -682,7 +682,7 @@ static constexpr NWidgetPart _nested_town_editor_view_widgets[] = {
static WindowDesc _town_editor_view_desc(
WDP_AUTO, "view_town_scen", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
0,
{},
_nested_town_editor_view_widgets
);
@@ -1076,7 +1076,7 @@ const std::initializer_list<GUITownList::SortFunction * const> TownDirectoryWind
static WindowDesc _town_directory_desc(
WDP_AUTO, "list_towns", 208, 202,
WC_TOWN_DIRECTORY, WC_NONE,
0,
{},
_nested_town_directory_widgets,
&TownDirectoryWindow::hotkeys
);
@@ -1341,7 +1341,7 @@ public:
static WindowDesc _found_town_desc(
WDP_AUTO, "build_town", 160, 162,
WC_FOUND_TOWN, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_found_town_widgets
);
@@ -1779,7 +1779,7 @@ static constexpr NWidgetPart _nested_build_house_widgets[] = {
static WindowDesc _build_house_desc(
WDP_AUTO, "build_house", 0, 0,
WC_BUILD_HOUSE, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_house_widgets,
&BuildHouseWindow::hotkeys
);