1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

Codechange: Use EnumBitSet for WindowDefaultFlags.

This commit is contained in:
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

@@ -63,7 +63,7 @@ static constexpr NWidgetPart _nested_land_info_widgets[] = {
static WindowDesc _land_info_desc(
WDP_AUTO, nullptr, 0, 0,
WC_LAND_INFO, WC_NONE,
0,
{},
_nested_land_info_widgets
);
@@ -381,7 +381,7 @@ static constexpr NWidgetPart _nested_about_widgets[] = {
static WindowDesc _about_desc(
WDP_CENTER, nullptr, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
0,
{},
_nested_about_widgets
);
@@ -640,7 +640,7 @@ static constexpr NWidgetPart _nested_tooltips_widgets[] = {
static WindowDesc _tool_tips_desc(
WDP_MANUAL, nullptr, 0, 0, // Coordinates and sizes are not used,
WC_TOOLTIPS, WC_NONE,
WDF_NO_FOCUS | WDF_NO_CLOSE,
{WindowDefaultFlag::NoFocus, WindowDefaultFlag::NoClose},
_nested_tooltips_widgets
);
@@ -1043,7 +1043,7 @@ static constexpr NWidgetPart _nested_query_string_widgets[] = {
static WindowDesc _query_string_desc(
WDP_CENTER, nullptr, 0, 0,
WC_QUERY_STRING, WC_NONE,
0,
{},
_nested_query_string_widgets
);
@@ -1186,7 +1186,7 @@ static constexpr NWidgetPart _nested_query_widgets[] = {
static WindowDesc _query_desc(
WDP_CENTER, nullptr, 0, 0,
WC_CONFIRM_POPUP_QUERY, WC_NONE,
WDF_MODAL,
WindowDefaultFlag::Modal,
_nested_query_widgets
);