(svn r18274) -Codechange: remove the unused WDF flags

This commit is contained in:
rubidium 2009-11-24 17:28:29 +00:00
parent 8371be352b
commit 69b6d9309a
43 changed files with 126 additions and 133 deletions

View File

@ -234,7 +234,7 @@ static const NWidgetPart _nested_ai_list_widgets[] = {
static const WindowDesc _ai_list_desc(
WDP_CENTER, WDP_CENTER, 200, 234,
WC_AI_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_ai_list_widgets, lengthof(_nested_ai_list_widgets)
);
@ -445,7 +445,7 @@ static const NWidgetPart _nested_ai_settings_widgets[] = {
static const WindowDesc _ai_settings_desc(
WDP_CENTER, WDP_CENTER, 500, 208,
WC_AI_SETTINGS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_ai_settings_widgets, lengthof(_nested_ai_settings_widgets)
);
@ -504,7 +504,7 @@ static const NWidgetPart _nested_ai_config_widgets[] = {
static const WindowDesc _ai_config_desc(
WDP_CENTER, WDP_CENTER, 300, 172,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_ai_config_widgets, lengthof(_nested_ai_config_widgets)
);
@ -974,7 +974,7 @@ static const NWidgetPart _nested_ai_debug_widgets[] = {
static const WindowDesc _ai_debug_desc(
WDP_AUTO, WDP_AUTO, 299, 241,
WC_AI_DEBUG, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_ai_debug_widgets, lengthof(_nested_ai_debug_widgets)
);

View File

@ -153,7 +153,7 @@ static const NWidgetPart _nested_air_toolbar_widgets[] = {
static const WindowDesc _air_toolbar_desc(
WDP_ALIGN_TBR, 22, 64, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_air_toolbar_widgets, lengthof(_nested_air_toolbar_widgets)
);
@ -386,7 +386,7 @@ static const NWidgetPart _nested_build_airport_widgets[] = {
static const WindowDesc _build_airport_desc(
WDP_AUTO, WDP_AUTO, 148, 245,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_airport_widgets, lengthof(_nested_build_airport_widgets)
);

View File

@ -535,7 +535,7 @@ static const NWidgetPart _nested_replace_rail_vehicle_widgets[] = {
static const WindowDesc _replace_rail_vehicle_desc(
WDP_AUTO, WDP_AUTO, 456, 140,
WC_REPLACE_VEHICLE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_replace_rail_vehicle_widgets, lengthof(_nested_replace_rail_vehicle_widgets)
);
@ -566,7 +566,7 @@ static const NWidgetPart _nested_replace_vehicle_widgets[] = {
static const WindowDesc _replace_vehicle_desc(
WDP_AUTO, WDP_AUTO, 456, 118,
WC_REPLACE_VEHICLE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_replace_vehicle_widgets, lengthof(_nested_replace_vehicle_widgets)
);

View File

@ -339,7 +339,7 @@ static const NWidgetPart _nested_build_bridge_widgets[] = {
static const WindowDesc _build_bridge_desc(
WDP_AUTO, WDP_AUTO, 200, 114,
WC_BUILD_BRIDGE, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_bridge_widgets, lengthof(_nested_build_bridge_widgets)
);

View File

@ -1187,7 +1187,7 @@ struct BuildVehicleWindow : Window {
static const WindowDesc _build_vehicle_desc(
WDP_AUTO, WDP_AUTO, 240, 268,
WC_BUILD_VEHICLE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_build_vehicle_widgets, lengthof(_nested_build_vehicle_widgets)
);

View File

@ -320,7 +320,7 @@ struct CheatWindow : Window {
static const WindowDesc _cheats_desc(
240, 22, 0, 0,
WC_CHEATS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_cheat_widgets, lengthof(_nested_cheat_widgets)
);

View File

@ -470,7 +470,7 @@ Money CompanyFinancesWindow::max_money = INT32_MAX;
static const WindowDesc _company_finances_desc(
WDP_AUTO, WDP_AUTO, 0, 0,
WC_FINANCES, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
WDF_UNCLICK_BUTTONS,
_nested_company_finances_widgets, lengthof(_nested_company_finances_widgets)
);
@ -825,7 +825,7 @@ static const NWidgetPart _nested_select_company_livery_widgets [] = {
static const WindowDesc _select_company_livery_desc(
WDP_AUTO, WDP_AUTO, 0, 0,
WC_COMPANY_COLOUR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_select_company_livery_widgets, lengthof(_nested_select_company_livery_widgets)
);
@ -1404,7 +1404,7 @@ public:
static const WindowDesc _select_company_manager_face_desc(
WDP_AUTO, WDP_AUTO, 190, 163,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_select_company_manager_face_widgets, lengthof(_nested_select_company_manager_face_widgets)
);
@ -1412,7 +1412,7 @@ static const WindowDesc _select_company_manager_face_desc(
static const WindowDesc _select_company_manager_face_adv_desc(
WDP_AUTO, WDP_AUTO, 220, 220,
WC_COMPANY_MANAGER_FACE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_select_company_manager_face_adv_widgets, lengthof(_nested_select_company_manager_face_adv_widgets)
);
@ -1900,7 +1900,7 @@ struct CompanyWindow : Window
static const WindowDesc _company_desc(
WDP_AUTO, WDP_AUTO, 360, 170,
WC_COMPANY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_company_widgets, lengthof(_nested_company_widgets)
);
@ -2012,7 +2012,7 @@ static const NWidgetPart _nested_buy_company_widgets[] = {
static const WindowDesc _buy_company_desc(
153, 171, 334, 137,
WC_BUY_COMPANY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
);

View File

@ -94,28 +94,28 @@ static const NWidgetPart _nested_train_depot_widgets[] = {
static const WindowDesc _train_depot_desc(
WDP_AUTO, WDP_AUTO, 362, 123,
WC_VEHICLE_DEPOT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
);
static const WindowDesc _road_depot_desc(
WDP_AUTO, WDP_AUTO, 316, 97,
WC_VEHICLE_DEPOT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
);
static const WindowDesc _ship_depot_desc(
WDP_AUTO, WDP_AUTO, 306, 99,
WC_VEHICLE_DEPOT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
);
static const WindowDesc _aircraft_depot_desc(
WDP_AUTO, WDP_AUTO, 332, 99,
WC_VEHICLE_DEPOT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_train_depot_widgets, lengthof(_nested_train_depot_widgets)
);

View File

@ -287,7 +287,7 @@ static const NWidgetPart _nested_build_docks_toolbar_widgets[] = {
static const WindowDesc _build_docks_toolbar_desc(
WDP_ALIGN_TBR, 22, 160, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_docks_toolbar_widgets, lengthof(_nested_build_docks_toolbar_widgets)
);
@ -323,7 +323,7 @@ static const NWidgetPart _nested_build_docks_scen_toolbar_widgets[] = {
static const WindowDesc _build_docks_scen_toolbar_desc(
WDP_AUTO, WDP_AUTO, 115, 36,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_docks_scen_toolbar_widgets, lengthof(_nested_build_docks_scen_toolbar_widgets)
);
@ -420,7 +420,7 @@ static const NWidgetPart _nested_build_dock_station_widgets[] = {
static const WindowDesc _build_dock_station_desc(
WDP_AUTO, WDP_AUTO, 148, 75,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_dock_station_widgets, lengthof(_nested_build_dock_station_widgets)
);
@ -506,7 +506,7 @@ static const NWidgetPart _nested_build_docks_depot_widgets[] = {
static const WindowDesc _build_docks_depot_desc(
WDP_AUTO, WDP_AUTO, 204, 86,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_docks_depot_widgets, lengthof(_nested_build_docks_depot_widgets)
);

View File

@ -126,7 +126,7 @@ struct EnginePreviewWindow : Window {
static const WindowDesc _engine_preview_desc(
WDP_CENTER, WDP_CENTER, 300, 192,
WC_ENGINE_PREVIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_engine_preview_widgets, lengthof(_nested_engine_preview_widgets)
);

View File

@ -769,14 +769,14 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
static const WindowDesc _generate_landscape_desc(
WDP_CENTER, WDP_CENTER, 338, 313,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_generate_landscape_widgets, lengthof(_nested_generate_landscape_widgets)
);
static const WindowDesc _heightmap_load_desc(
WDP_CENTER, WDP_CENTER, 338, 236,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
);
@ -1089,7 +1089,7 @@ static const NWidgetPart _nested_create_scenario_widgets[] = {
static const WindowDesc _create_scenario_desc(
WDP_CENTER, WDP_CENTER, 338, 170,
WC_GENERATE_LANDSCAPE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_create_scenario_widgets, lengthof(_nested_create_scenario_widgets)
);
@ -1124,7 +1124,7 @@ static const NWidgetPart _nested_generate_progress_widgets[] = {
static const WindowDesc _generate_progress_desc(
WDP_CENTER, WDP_CENTER, 181, 97,
WC_GENERATE_PROGRESS_WINDOW, WC_NONE,
WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_generate_progress_widgets, lengthof(_nested_generate_progress_widgets)
);

View File

@ -144,7 +144,7 @@ static const NWidgetPart _nested_graph_legend_widgets[] = {
static const WindowDesc _graph_legend_desc(
WDP_AUTO, WDP_AUTO, 250, 196,
WC_GRAPH_LEGEND, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_graph_legend_widgets, lengthof(_nested_graph_legend_widgets)
);
@ -609,7 +609,7 @@ static const NWidgetPart _nested_operating_profit_widgets[] = {
static const WindowDesc _operating_profit_desc(
WDP_AUTO, WDP_AUTO, 576, 174,
WC_OPERATING_PROFIT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_operating_profit_widgets, lengthof(_nested_operating_profit_widgets)
);
@ -650,7 +650,7 @@ static const NWidgetPart _nested_income_graph_widgets[] = {
static const WindowDesc _income_graph_desc(
WDP_AUTO, WDP_AUTO, 576, 142,
WC_INCOME_GRAPH, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_income_graph_widgets, lengthof(_nested_income_graph_widgets)
);
@ -688,7 +688,7 @@ static const NWidgetPart _nested_delivered_cargo_graph_widgets[] = {
static const WindowDesc _delivered_cargo_graph_desc(
WDP_AUTO, WDP_AUTO, 576, 142,
WC_DELIVERED_CARGO, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_delivered_cargo_graph_widgets, lengthof(_nested_delivered_cargo_graph_widgets)
);
@ -742,7 +742,7 @@ static const NWidgetPart _nested_performance_history_widgets[] = {
static const WindowDesc _performance_history_desc(
WDP_AUTO, WDP_AUTO, 576, 238,
WC_PERFORMANCE_HISTORY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_performance_history_widgets, lengthof(_nested_performance_history_widgets)
);
@ -780,7 +780,7 @@ static const NWidgetPart _nested_company_value_graph_widgets[] = {
static const WindowDesc _company_value_graph_desc(
WDP_AUTO, WDP_AUTO, 576, 238,
WC_COMPANY_VALUE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_company_value_graph_widgets, lengthof(_nested_company_value_graph_widgets)
);
@ -953,7 +953,7 @@ static const NWidgetPart _nested_cargo_payment_rates_widgets[] = {
static const WindowDesc _cargo_payment_rates_desc(
WDP_AUTO, WDP_AUTO, 568, 46,
WC_PAYMENT_RATES, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_cargo_payment_rates_widgets, lengthof(_nested_cargo_payment_rates_widgets)
);
@ -1136,7 +1136,7 @@ static const NWidgetPart _nested_company_league_widgets[] = {
static const WindowDesc _company_league_desc(
WDP_AUTO, WDP_AUTO, 400, 167,
WC_COMPANY_LEAGUE, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
0,
_nested_company_league_widgets, lengthof(_nested_company_league_widgets)
);
@ -1478,7 +1478,7 @@ static const NWidgetPart _nested_performance_rating_detail_widgets[] = {
static const WindowDesc _performance_rating_detail_desc(
WDP_AUTO, WDP_AUTO, 299, 241,
WC_PERFORMANCE_DETAIL, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_performance_rating_detail_widgets, lengthof(_nested_performance_rating_detail_widgets)
);

View File

@ -689,14 +689,14 @@ public:
static WindowDesc _other_group_desc(
WDP_AUTO, WDP_AUTO, 460, 246,
WC_INVALID, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_group_widgets, lengthof(_nested_group_widgets)
);
const static WindowDesc _train_group_desc(
WDP_AUTO, WDP_AUTO, 525, 246,
WC_TRAINS_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_group_widgets, lengthof(_nested_group_widgets)
);

View File

@ -127,7 +127,7 @@ static const NWidgetPart _nested_build_industry_widgets[] = {
static const WindowDesc _build_industry_desc(
WDP_AUTO, WDP_AUTO, 170, 212,
WC_BUILD_INDUSTRY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_industry_widgets, lengthof(_nested_build_industry_widgets)
);
@ -822,7 +822,7 @@ static const NWidgetPart _nested_industry_view_widgets[] = {
static const WindowDesc _industry_view_desc(
WDP_AUTO, WDP_AUTO, 260, 120,
WC_INDUSTRY_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_industry_view_widgets, lengthof(_nested_industry_view_widgets)
);
@ -1198,7 +1198,7 @@ const StringID IndustryDirectoryWindow::sorter_names[] = {
static const WindowDesc _industry_directory_desc(
WDP_AUTO, WDP_AUTO, 428, 190,
WC_INDUSTRY_DIRECTORY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_industry_directory_widgets, lengthof(_nested_industry_directory_widgets)
);

View File

@ -253,7 +253,7 @@ static const NWidgetPart _nested_select_game_widgets[] = {
static const WindowDesc _select_game_desc(
WDP_CENTER, WDP_CENTER, 336, 213,
WC_SELECT_GAME, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_select_game_widgets, lengthof(_nested_select_game_widgets)
);

View File

@ -74,7 +74,7 @@ static const NWidgetPart _nested_land_info_widgets[] = {
static const WindowDesc _land_info_desc(
WDP_AUTO, WDP_AUTO, 0, 0,
WC_LAND_INFO, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_land_info_widgets, lengthof(_nested_land_info_widgets)
);
@ -351,7 +351,7 @@ static const NWidgetPart _nested_about_widgets[] = {
static const WindowDesc _about_desc(
WDP_CENTER, WDP_CENTER, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_about_widgets, lengthof(_nested_about_widgets)
);
@ -510,7 +510,7 @@ static const NWidgetPart _nested_errmsg_widgets[] = {
static const WindowDesc _errmsg_desc(
0, 0, 240, 46, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_errmsg_widgets, lengthof(_nested_errmsg_widgets)
);
@ -530,7 +530,7 @@ static const NWidgetPart _nested_errmsg_face_widgets[] = {
static const WindowDesc _errmsg_face_desc(
0, 0, 334, 137, // x/y position is not used.
WC_ERRMSG, WC_NONE,
WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_errmsg_face_widgets, lengthof(_nested_errmsg_face_widgets)
);
@ -1443,7 +1443,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
static const WindowDesc _query_string_desc(
190, 219, 260, 42,
WC_QUERY_STRING, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
0,
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
);
@ -1598,7 +1598,7 @@ static const NWidgetPart _nested_query_widgets[] = {
static const WindowDesc _query_desc(
WDP_CENTER, WDP_CENTER, 210, 82,
WC_CONFIRM_POPUP_QUERY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_DEF_WIDGET | WDF_MODAL,
WDF_UNCLICK_BUTTONS | WDF_MODAL,
_nested_query_widgets, lengthof(_nested_query_widgets)
);
@ -2041,14 +2041,14 @@ public:
static const WindowDesc _load_dialog_desc(
WDP_CENTER, WDP_CENTER, 257, 294,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_load_dialog_widgets, lengthof(_nested_load_dialog_widgets)
);
static const WindowDesc _save_dialog_desc(
WDP_CENTER, WDP_CENTER, 257, 320,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_save_dialog_widgets, lengthof(_nested_save_dialog_widgets)
);

View File

@ -415,7 +415,7 @@ static const NWidgetPart _nested_music_track_selection_widgets[] = {
static const WindowDesc _music_track_selection_desc(
104, 131, 432, 218,
WC_MUSIC_TRACK_SELECTION, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_music_track_selection_widgets, lengthof(_nested_music_track_selection_widgets)
);
@ -721,7 +721,7 @@ static const NWidgetPart _nested_music_window_widgets[] = {
static const WindowDesc _music_window_desc(
0, 22, 300, 66,
WC_MUSIC_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_music_window_widgets, lengthof(_nested_music_window_widgets)
);

View File

@ -545,7 +545,7 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
static const WindowDesc _chat_window_desc(
WDP_CENTER, 0, 640, 14, // x, y, width, height
WC_SEND_NETWORK_MSG, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
0,
_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
);

View File

@ -49,7 +49,7 @@ static const NWidgetPart _nested_network_content_download_status_window_widgets[
static const WindowDesc _network_content_download_status_window_desc(
WDP_CENTER, WDP_CENTER, 350, 85,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL,
WDF_MODAL,
_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets)
);
@ -871,7 +871,7 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
static const WindowDesc _network_content_list_desc(
WDP_CENTER, WDP_CENTER, 630, 460,
WC_NETWORK_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets)
);

View File

@ -1006,7 +1006,7 @@ static const NWidgetPart _nested_network_game_widgets[] = {
static const WindowDesc _network_game_window_desc(
WDP_CENTER, WDP_CENTER, 1000, 730,
WC_NETWORK_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_network_game_widgets, lengthof(_nested_network_game_widgets)
);
@ -1434,7 +1434,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
static const WindowDesc _network_start_server_window_desc(
WDP_CENTER, WDP_CENTER, 420, 244,
WC_NETWORK_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
);
@ -1734,7 +1734,7 @@ static const NWidgetPart _nested_network_lobby_window_widgets[] = {
static const WindowDesc _network_lobby_window_desc(
WDP_CENTER, WDP_CENTER, 0, 0,
WC_NETWORK_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
);
@ -1777,7 +1777,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = {
static const WindowDesc _client_list_popup_desc(
WDP_AUTO, WDP_AUTO, 150, 1,
WC_TOOLBAR_MENU, WC_CLIENT_LIST,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
0,
_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
);
@ -1993,7 +1993,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
static const WindowDesc _client_list_desc(
WDP_AUTO, WDP_AUTO, 250, 16,
WC_CLIENT_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
);
@ -2275,7 +2275,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
static const WindowDesc _network_join_status_window_desc(
WDP_CENTER, WDP_CENTER, 250, 85,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL,
WDF_MODAL,
_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
);
@ -2400,7 +2400,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
static const WindowDesc _network_company_password_window_desc(
WDP_AUTO, WDP_AUTO, 300, 63,
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
WDF_UNCLICK_BUTTONS,
_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
);

View File

@ -489,7 +489,7 @@ static const NWidgetPart _nested_newgrf_add_dlg_widgets[] = {
static const WindowDesc _newgrf_add_dlg_desc(
WDP_CENTER, WDP_CENTER, 306, 347,
WC_SAVELOAD, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_newgrf_add_dlg_widgets, lengthof(_nested_newgrf_add_dlg_widgets)
);
@ -1051,7 +1051,7 @@ static const NWidgetPart _nested_newgrf_widgets[] = {
static const WindowDesc _newgrf_desc(
WDP_CENTER, WDP_CENTER, 300, 263,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_newgrf_widgets, lengthof(_nested_newgrf_widgets)
);

View File

@ -108,7 +108,7 @@ static const NWidgetPart _nested_normal_news_widgets[] = {
static WindowDesc _normal_news_desc(
WDP_CENTER, 476, 430, 170,
WC_NEWS_WINDOW, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_normal_news_widgets, lengthof(_nested_normal_news_widgets)
);
@ -135,7 +135,7 @@ static const NWidgetPart _nested_vehicle_news_widgets[] = {
static WindowDesc _vehicle_news_desc(
WDP_CENTER, 476, 430, 170,
WC_NEWS_WINDOW, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_vehicle_news_widgets, lengthof(_nested_vehicle_news_widgets)
);
@ -166,7 +166,7 @@ static const NWidgetPart _nested_company_news_widgets[] = {
static WindowDesc _company_news_desc(
WDP_CENTER, 476, 430, 170,
WC_NEWS_WINDOW, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_company_news_widgets, lengthof(_nested_company_news_widgets)
);
@ -189,7 +189,7 @@ static const NWidgetPart _nested_thin_news_widgets[] = {
static WindowDesc _thin_news_desc(
WDP_CENTER, 476, 430, 130,
WC_NEWS_WINDOW, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_thin_news_widgets, lengthof(_nested_thin_news_widgets)
);
@ -213,7 +213,7 @@ static NWidgetPart _nested_small_news_widgets[] = {
static WindowDesc _small_news_desc(
WDP_CENTER, 476, 280, 87,
WC_NEWS_WINDOW, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_small_news_widgets, lengthof(_nested_small_news_widgets)
);
@ -1031,7 +1031,7 @@ static const NWidgetPart _nested_message_history[] = {
static const WindowDesc _message_history_desc(
240, 22, 400, 140,
WC_MESSAGE_HISTORY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_message_history, lengthof(_nested_message_history)
);
@ -1319,7 +1319,7 @@ static const NWidgetPart _nested_message_options_widgets[] = {
static const WindowDesc _message_options_desc(
270, 22, 0, 0,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_message_options_widgets, lengthof(_nested_message_options_widgets)
);

View File

@ -1341,7 +1341,7 @@ static const NWidgetPart _nested_orders_train_widgets[] = {
static const WindowDesc _orders_train_desc(
WDP_AUTO, WDP_AUTO, 384, 100,
WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_orders_train_widgets, lengthof(_nested_orders_train_widgets)
);
@ -1405,7 +1405,7 @@ static const NWidgetPart _nested_orders_widgets[] = {
static const WindowDesc _orders_desc(
WDP_AUTO, WDP_AUTO, 384, 100,
WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_orders_widgets, lengthof(_nested_orders_widgets)
);
@ -1431,7 +1431,7 @@ static const NWidgetPart _nested_other_orders_widgets[] = {
static const WindowDesc _other_orders_desc(
WDP_AUTO, WDP_AUTO, 384, 86,
WC_VEHICLE_ORDERS, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_other_orders_widgets, lengthof(_nested_other_orders_widgets)
);

View File

@ -388,7 +388,7 @@ static const NWidgetPart _nested_osk_widgets[] = {
static const WindowDesc _osk_desc(
WDP_CENTER, WDP_CENTER, 256, 140,
WC_OSK, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_osk_widgets, lengthof(_nested_osk_widgets)
);

View File

@ -861,7 +861,7 @@ static const NWidgetPart _nested_build_rail_widgets[] = {
static const WindowDesc _build_rail_desc(
WDP_ALIGN_TBR, 22, 350, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_rail_widgets, lengthof(_nested_build_rail_widgets)
);
@ -1471,7 +1471,7 @@ static const NWidgetPart _nested_newstation_builder_widgets[] = {
static const WindowDesc _station_builder_desc(
WDP_AUTO, WDP_AUTO, 148, 200,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_station_builder_widgets, lengthof(_nested_station_builder_widgets)
);
@ -1479,7 +1479,7 @@ static const WindowDesc _station_builder_desc(
static const WindowDesc _newstation_builder_desc(
WDP_AUTO, WDP_AUTO, 148, 290,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_newstation_builder_widgets, lengthof(_nested_newstation_builder_widgets)
);
@ -1686,7 +1686,7 @@ static const NWidgetPart _nested_signal_builder_widgets[] = {
static const WindowDesc _signal_builder_desc(
WDP_AUTO, WDP_AUTO, 154, 68,
WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_signal_builder_widgets, lengthof(_nested_signal_builder_widgets)
);
@ -1779,7 +1779,7 @@ static const NWidgetPart _nested_build_depot_widgets[] = {
static const WindowDesc _build_depot_desc(
WDP_AUTO, WDP_AUTO, 140, 122,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_depot_widgets, lengthof(_nested_build_depot_widgets)
);
@ -1882,7 +1882,7 @@ static const NWidgetPart _nested_build_waypoint_widgets[] = {
static const WindowDesc _build_waypoint_desc(
WDP_AUTO, WDP_AUTO, 344, 92,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_waypoint_widgets, lengthof(_nested_build_waypoint_widgets)
);

View File

@ -666,7 +666,7 @@ static const NWidgetPart _nested_build_road_widgets[] = {
static const WindowDesc _build_road_desc(
WDP_ALIGN_TBR, 22, 263, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_road_widgets, lengthof(_nested_build_road_widgets)
);
@ -705,7 +705,7 @@ static const NWidgetPart _nested_build_tramway_widgets[] = {
static const WindowDesc _build_tramway_desc(
WDP_ALIGN_TBR, 22, 241, 36,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_tramway_widgets, lengthof(_nested_build_tramway_widgets)
);
@ -748,7 +748,7 @@ static const NWidgetPart _nested_build_road_scen_widgets[] = {
static const WindowDesc _build_road_scen_desc(
WDP_AUTO, WDP_AUTO, 197, 36,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_road_scen_widgets, lengthof(_nested_build_road_scen_widgets)
);
@ -848,7 +848,7 @@ static const NWidgetPart _nested_build_road_depot_widgets[] = {
static const WindowDesc _build_road_depot_desc(
WDP_AUTO, WDP_AUTO, 140, 122,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_road_depot_widgets, lengthof(_nested_build_road_depot_widgets)
);
@ -1018,7 +1018,7 @@ static const NWidgetPart _nested_rv_station_picker_widgets[] = {
static const WindowDesc _rv_station_picker_desc(
WDP_AUTO, WDP_AUTO, 207, 178,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_rv_station_picker_widgets, lengthof(_nested_rv_station_picker_widgets)
);

View File

@ -491,7 +491,7 @@ static const NWidgetPart _nested_game_options_widgets[] = {
static const WindowDesc _game_options_desc(
WDP_CENTER, WDP_CENTER, 370, 249,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_game_options_widgets, lengthof(_nested_game_options_widgets)
);
@ -769,7 +769,7 @@ static const NWidgetPart _nested_game_difficulty_widgets[] = {
static const WindowDesc _game_difficulty_desc(
WDP_CENTER, WDP_CENTER, 370, 279,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_game_difficulty_widgets, lengthof(_nested_game_difficulty_widgets)
);
@ -1664,7 +1664,7 @@ static const NWidgetPart _nested_settings_selection_widgets[] = {
static const WindowDesc _settings_selection_desc(
WDP_CENTER, WDP_CENTER, 450, 397,
WC_GAME_OPTIONS, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE,
0,
_nested_settings_selection_widgets, lengthof(_nested_settings_selection_widgets)
);
@ -1947,7 +1947,7 @@ static const NWidgetPart _nested_cust_currency_widgets[] = {
static const WindowDesc _cust_currency_desc(
WDP_CENTER, WDP_CENTER, 230, 120,
WC_CUSTOM_CURRENCY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_cust_currency_widgets, lengthof(_nested_cust_currency_widgets)
);

View File

@ -218,7 +218,7 @@ static const NWidgetPart _nested_sign_list_widgets[] = {
static const WindowDesc _sign_list_desc(
WDP_AUTO, WDP_AUTO, 358, 138,
WC_SIGN_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_sign_list_widgets, lengthof(_nested_sign_list_widgets)
);
@ -416,7 +416,7 @@ static const NWidgetPart _nested_query_sign_edit_widgets[] = {
static const WindowDesc _query_sign_edit_desc(
190, 170, 260, 42,
WC_QUERY_STRING, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)
);

View File

@ -1151,7 +1151,7 @@ bool SmallMapWindow::show_towns = true;
static const WindowDesc _smallmap_desc(
WDP_AUTO, WDP_AUTO, 446, 314,
WC_SMALLMAP, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_UNCLICK_BUTTONS,
WDF_UNCLICK_BUTTONS,
_nested_smallmap_widgets, lengthof(_nested_smallmap_widgets)
);

View File

@ -715,7 +715,7 @@ static const NWidgetPart _nested_company_stations_widgets[] = {
static const WindowDesc _company_stations_desc(
WDP_AUTO, WDP_AUTO, 358, 162,
WC_STATION_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_company_stations_widgets, lengthof(_nested_company_stations_widgets)
);
@ -1173,7 +1173,7 @@ struct StationViewWindow : public Window {
static const WindowDesc _station_view_desc(
WDP_AUTO, WDP_AUTO, 249, 110,
WC_STATION_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_station_view_widgets, lengthof(_nested_station_view_widgets)
);
@ -1422,7 +1422,7 @@ struct SelectStationWindow : Window {
static const WindowDesc _select_station_desc(
WDP_AUTO, WDP_AUTO, 200, 180,
WC_SELECT_STATION, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_select_station_widgets, lengthof(_nested_select_station_widgets)
);

View File

@ -237,7 +237,7 @@ static const NWidgetPart _nested_main_status_widgets[] = {
static const WindowDesc _main_status_desc(
WDP_CENTER, 0, 640, 12,
WC_STATUS_BAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
_nested_main_status_widgets, lengthof(_nested_main_status_widgets)
);

View File

@ -248,7 +248,7 @@ static const NWidgetPart _nested_subsidies_list_widgets[] = {
static const WindowDesc _subsidies_list_desc(
WDP_AUTO, WDP_AUTO, 500, 127,
WC_SUBSIDIES_LIST, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
0,
_nested_subsidies_list_widgets, lengthof(_nested_subsidies_list_widgets)
);

View File

@ -343,7 +343,7 @@ static const NWidgetPart _nested_terraform_widgets[] = {
static const WindowDesc _terraform_desc(
WDP_ALIGN_TBR, 22 + 36, 158, 36,
WC_SCEN_LAND_GEN, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_terraform_widgets, lengthof(_nested_terraform_widgets)
);
@ -776,7 +776,7 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
static const WindowDesc _scen_edit_land_gen_desc(
WDP_AUTO, WDP_AUTO, 163, 103,
WC_SCEN_LAND_GEN, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_scen_edit_land_gen_widgets, lengthof(_nested_scen_edit_land_gen_widgets)
);

View File

@ -382,7 +382,7 @@ static const NWidgetPart _nested_timetable_widgets[] = {
static const WindowDesc _timetable_desc(
WDP_AUTO, WDP_AUTO, 400, 130,
WC_VEHICLE_TIMETABLE, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_timetable_widgets, lengthof(_nested_timetable_widgets)
);

View File

@ -1360,7 +1360,7 @@ static const NWidgetPart _nested_toolbar_normal_widgets[] = {
static const WindowDesc _toolb_normal_desc(
0, 0, 640, 22,
WC_MAIN_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_NO_FOCUS,
WDF_NO_FOCUS,
_nested_toolbar_normal_widgets, lengthof(_nested_toolbar_normal_widgets)
);
@ -1583,7 +1583,7 @@ static const NWidgetPart _nested_toolb_scen_widgets[] = {
static const WindowDesc _toolb_scen_desc(
0, 0, 640, 22,
WC_MAIN_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
WDF_UNCLICK_BUTTONS | WDF_NO_FOCUS,
_nested_toolb_scen_widgets, lengthof(_nested_toolb_scen_widgets)
);

View File

@ -286,7 +286,7 @@ public:
static const WindowDesc _town_authority_desc(
WDP_AUTO, WDP_AUTO, 317, 222,
WC_TOWN_AUTHORITY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_town_authority_widgets, lengthof(_nested_town_authority_widgets)
);
@ -549,7 +549,7 @@ static const NWidgetPart _nested_town_game_view_widgets[] = {
static const WindowDesc _town_game_view_desc(
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_town_game_view_widgets, lengthof(_nested_town_game_view_widgets)
);
@ -579,7 +579,7 @@ static const NWidgetPart _nested_town_editor_view_widgets[] = {
static const WindowDesc _town_editor_view_desc(
WDP_AUTO, WDP_AUTO, 260, TownViewWindow::TVW_HEIGHT_NORMAL,
WC_TOWN_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_town_editor_view_widgets, lengthof(_nested_town_editor_view_widgets)
);
@ -869,7 +869,7 @@ GUITownList::SortFunction * const TownDirectoryWindow::sorter_funcs[] = {
static const WindowDesc _town_directory_desc(
WDP_AUTO, WDP_AUTO, 208, 202,
WC_TOWN_DIRECTORY, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_town_directory_widgets, lengthof(_nested_town_directory_widgets)
);
@ -1145,7 +1145,7 @@ public:
static const WindowDesc _found_town_desc(
WDP_AUTO, WDP_AUTO, 160, 162,
WC_FOUND_TOWN, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_found_town_widgets, lengthof(_nested_found_town_widgets)
);

View File

@ -155,7 +155,7 @@ static const NWidgetPart _nested_transparency_widgets[] = {
static const WindowDesc _transparency_desc(
WDP_ALIGN_TBR, 94, 219, 49,
WC_TRANSPARENCY_TOOLBAR, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
0,
_nested_transparency_widgets, lengthof(_nested_transparency_widgets)
);

View File

@ -230,7 +230,7 @@ static const NWidgetPart _nested_build_trees_widgets[] = {
static const WindowDesc _build_trees_desc(
WDP_AUTO, WDP_AUTO, 143, 184,
WC_BUILD_TREES, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_CONSTRUCTION,
WDF_CONSTRUCTION,
_nested_build_trees_widgets, lengthof(_nested_build_trees_widgets)
);

View File

@ -449,7 +449,7 @@ static const NWidgetPart _nested_vehicle_refit_widgets[] = {
static const WindowDesc _vehicle_refit_desc(
WDP_AUTO, WDP_AUTO, 240, 174,
WC_VEHICLE_REFIT, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE | WDF_CONSTRUCTION,
WDF_UNCLICK_BUTTONS | WDF_CONSTRUCTION,
_nested_vehicle_refit_widgets, lengthof(_nested_vehicle_refit_widgets)
);
@ -1194,7 +1194,7 @@ public:
static WindowDesc _vehicle_list_desc(
WDP_AUTO, WDP_AUTO, 260, 246,
WC_INVALID, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_vehicle_list, lengthof(_nested_vehicle_list)
);
@ -1608,7 +1608,7 @@ struct VehicleDetailsWindow : Window {
static const WindowDesc _train_vehicle_details_desc(
WDP_AUTO, WDP_AUTO, 405, 178,
WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_train_vehicle_details_widgets, lengthof(_nested_train_vehicle_details_widgets)
);
@ -1616,7 +1616,7 @@ static const WindowDesc _train_vehicle_details_desc(
static const WindowDesc _nontrain_vehicle_details_desc(
WDP_AUTO, WDP_AUTO, 405, 113,
WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_nontrain_vehicle_details_widgets, lengthof(_nested_nontrain_vehicle_details_widgets)
);
@ -1673,7 +1673,7 @@ static const NWidgetPart _nested_vehicle_view_widgets[] = {
static const WindowDesc _vehicle_view_desc(
WDP_AUTO, WDP_AUTO, 250, 116,
WC_VEHICLE_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets)
);
@ -1683,7 +1683,7 @@ static const WindowDesc _vehicle_view_desc(
static const WindowDesc _train_view_desc(
WDP_AUTO, WDP_AUTO, 250, 134,
WC_VEHICLE_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_vehicle_view_widgets, lengthof(_nested_vehicle_view_widgets)
);

View File

@ -167,7 +167,7 @@ public:
static const WindowDesc _extra_view_port_desc(
WDP_AUTO, WDP_AUTO, 300, 268,
WC_EXTRA_VIEW_PORT, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
WDF_UNCLICK_BUTTONS,
_nested_extra_view_port_widgets, lengthof(_nested_extra_view_port_widgets)
);

View File

@ -144,7 +144,7 @@ static const NWidgetPart _nested_waypoint_view_widgets[] = {
static const WindowDesc _waypoint_view_desc(
WDP_AUTO, WDP_AUTO, 260, 118,
WC_WAYPOINT_VIEW, WC_NONE,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
WDF_UNCLICK_BUTTONS,
_nested_waypoint_view_widgets, lengthof(_nested_waypoint_view_widgets)
);

View File

@ -85,7 +85,7 @@ static const NWidgetPart _nested_dropdown_menu_widgets[] = {
const WindowDesc _dropdown_desc(
0, 0, 0, 0, // x/y position not used.
WC_DROPDOWN_MENU, WC_NONE,
WDF_DEF_WIDGET,
0,
_nested_dropdown_menu_widgets, lengthof(_nested_dropdown_menu_widgets)
);

View File

@ -149,17 +149,10 @@ struct WindowDesc : ZeroedMemoryAllocator {
* Window default widget/window handling flags
*/
enum WindowDefaultFlag {
WDF_STD_TOOLTIPS = 1 << 0, ///< use standard routine when displaying tooltips
WDF_DEF_WIDGET = 1 << 1, ///< Default widget control for some widgets in the on click event, @see DispatchLeftClickEvent()
WDF_STD_BTN = 1 << 2, ///< Default handling for close and titlebar widgets (the widgets with type WWT_CLOSEBOX and WWT_CAPTION).
WDF_CONSTRUCTION = 1 << 3, ///< This window is used for construction; close it whenever changing company.
WDF_UNCLICK_BUTTONS = 1 << 4, ///< Unclick buttons when the window event times out
WDF_STICKY_BUTTON = 1 << 5, ///< Set window to sticky mode; they are not closed unless closed with 'X' (widget with type WWT_STICKYBOX).
WDF_RESIZABLE = 1 << 6, ///< Window can be resized
WDF_MODAL = 1 << 7, ///< The window is a modal child of some other window, meaning the parent is 'inactive'
WDF_NO_FOCUS = 1 << 8, ///< This window won't get focus/make any other window lose focus when click
WDF_CONSTRUCTION = 1 << 0, ///< This window is used for construction; close it whenever changing company.
WDF_UNCLICK_BUTTONS = 1 << 1, ///< Unclick buttons when the window event times out
WDF_MODAL = 1 << 2, ///< The window is a modal child of some other window, meaning the parent is 'inactive'
WDF_NO_FOCUS = 1 << 3, ///< This window won't get focus/make any other window lose focus when click
};
/**