1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 19:54:06 +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

@@ -940,7 +940,7 @@ static constexpr NWidgetPart _nested_build_road_widgets[] = {
static WindowDesc _build_road_desc(
WDP_ALIGN_TOOLBAR, "toolbar_road", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_road_widgets,
&BuildRoadToolbarWindow::road_hotkeys
);
@@ -983,7 +983,7 @@ static constexpr NWidgetPart _nested_build_tramway_widgets[] = {
static WindowDesc _build_tramway_desc(
WDP_ALIGN_TOOLBAR, "toolbar_tramway", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_tramway_widgets,
&BuildRoadToolbarWindow::tram_hotkeys
);
@@ -1038,7 +1038,7 @@ static constexpr NWidgetPart _nested_build_road_scen_widgets[] = {
static WindowDesc _build_road_scen_desc(
WDP_AUTO, "toolbar_road_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_road_scen_widgets,
&BuildRoadToolbarWindow::road_hotkeys
);
@@ -1073,7 +1073,7 @@ static constexpr NWidgetPart _nested_build_tramway_scen_widgets[] = {
static WindowDesc _build_tramway_scen_desc(
WDP_AUTO, "toolbar_tram_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_tramway_scen_widgets,
&BuildRoadToolbarWindow::tram_hotkeys
);
@@ -1170,7 +1170,7 @@ static constexpr NWidgetPart _nested_build_road_depot_widgets[] = {
static WindowDesc _build_road_depot_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_road_depot_widgets
);
@@ -1548,7 +1548,7 @@ static constexpr NWidgetPart _nested_road_station_picker_widgets[] = {
static WindowDesc _road_station_picker_desc(
WDP_AUTO, "build_station_road", 0, 0,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_road_station_picker_widgets,
&BuildRoadStationWindow::road_hotkeys
);
@@ -1588,7 +1588,7 @@ static constexpr NWidgetPart _nested_tram_station_picker_widgets[] = {
static WindowDesc _tram_station_picker_desc(
WDP_AUTO, "build_station_tram", 0, 0,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_tram_station_picker_widgets,
&BuildRoadStationWindow::tram_hotkeys
);
@@ -1701,7 +1701,7 @@ static constexpr NWidgetPart _nested_build_road_waypoint_widgets[] = {
static WindowDesc _build_road_waypoint_desc(
WDP_AUTO, "build_road_waypoint", 0, 0,
WC_BUILD_WAYPOINT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
WindowDefaultFlag::Construction,
_nested_build_road_waypoint_widgets,
&BuildRoadWaypointWindow::hotkeys
);