mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 20:49:11 +00:00
Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:
@@ -508,7 +508,7 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
|
||||
};
|
||||
|
||||
/** The description of the chat window. */
|
||||
static WindowDesc _chat_window_desc(
|
||||
static WindowDesc _chat_window_desc(__FILE__, __LINE__,
|
||||
WDP_MANUAL, nullptr, 0, 0,
|
||||
WC_SEND_NETWORK_MSG, WC_NONE,
|
||||
0,
|
||||
|
@@ -92,7 +92,7 @@ static const NWidgetPart _nested_network_content_download_status_window_widgets[
|
||||
};
|
||||
|
||||
/** Window description for the download window */
|
||||
static WindowDesc _network_content_download_status_window_desc(
|
||||
static WindowDesc _network_content_download_status_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -1109,7 +1109,7 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
|
||||
};
|
||||
|
||||
/** Window description of the content list */
|
||||
static WindowDesc _network_content_list_desc(
|
||||
static WindowDesc _network_content_list_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, "list_content", 630, 460,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
|
@@ -952,7 +952,7 @@ static const NWidgetPart _nested_network_game_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_game_window_desc(
|
||||
static WindowDesc _network_game_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, "list_servers", 1000, 730,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1219,7 +1219,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_start_server_window_desc(
|
||||
static WindowDesc _network_start_server_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1298,7 +1298,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _client_list_desc(
|
||||
static WindowDesc _client_list_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_clients", 220, 300,
|
||||
WC_CLIENT_LIST, WC_NONE,
|
||||
0,
|
||||
@@ -2208,7 +2208,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_join_status_window_desc(
|
||||
static WindowDesc _network_join_status_window_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2330,7 +2330,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_company_password_window_desc(
|
||||
static WindowDesc _network_company_password_window_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, nullptr, 0, 0,
|
||||
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -2439,7 +2439,7 @@ static const NWidgetPart _nested_network_ask_relay_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_relay_desc(
|
||||
static WindowDesc _network_ask_relay_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_RELAY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2537,7 +2537,7 @@ static const NWidgetPart _nested_network_ask_survey_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_survey_desc(
|
||||
static WindowDesc _network_ask_survey_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_SURVEY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
|
Reference in New Issue
Block a user