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

@@ -901,7 +901,7 @@ static constexpr NWidgetPart _nested_build_rail_widgets[] = {
static WindowDesc _build_rail_desc(
WDP_ALIGN_TOOLBAR, "toolbar_rail", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_rail_widgets,
&BuildRailToolbarWindow::hotkeys
);
@@ -1430,7 +1430,7 @@ static constexpr NWidgetPart _nested_station_builder_widgets[] = {
static WindowDesc _station_builder_desc(
WDP_AUTO, "build_station_rail", 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_station_builder_widgets,
&BuildRailStationWindow::hotkeys
);
@@ -1686,7 +1686,7 @@ static constexpr NWidgetPart _nested_signal_builder_widgets[] = {
static WindowDesc _signal_builder_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_signal_builder_widgets
);
@@ -1767,7 +1767,7 @@ static constexpr NWidgetPart _nested_build_depot_widgets[] = {
static WindowDesc _build_depot_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_depot_widgets
);
@@ -1878,7 +1878,7 @@ static constexpr NWidgetPart _nested_build_waypoint_widgets[] = {
static WindowDesc _build_waypoint_desc(
WDP_AUTO, "build_waypoint", 0, 0,
WC_BUILD_WAYPOINT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_waypoint_widgets,
&BuildRailWaypointWindow::hotkeys
);