summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-26 19:25:01 +0000
committerfrosch <frosch@openttd.org>2013-05-26 19:25:01 +0000
commit8157a8afd814cb24aaaa4c725817c864e0c583c6 (patch)
treef81c823727cb75370437179afd5ba452055f6512 /src/network
parent8c4714ad9099308691059f0a7a3cd6bbd33ce538 (diff)
downloadopenttd-8157a8afd814cb24aaaa4c725817c864e0c583c6.tar.xz
(svn r25290) -Add: Assign string names to notable windows.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_chat_gui.cpp2
-rw-r--r--src/network/network_content_gui.cpp4
-rw-r--r--src/network/network_gui.cpp14
3 files changed, 10 insertions, 10 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index 5e7d11821..c6e2408cb 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -541,7 +541,7 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
/** The description of the chat window. */
static WindowDesc _chat_window_desc(
- WDP_MANUAL, 640, 14, // x, y, width, height
+ WDP_MANUAL, NULL, 640, 14, // x, y, width, height
WC_SEND_NETWORK_MSG, WC_NONE,
0,
_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index ba30199ae..619526c17 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -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(
- WDP_CENTER, 0, 0,
+ WDP_CENTER, NULL, 0, 0,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_MODAL,
_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets)
@@ -1033,7 +1033,7 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
/** Window description of the content list */
static WindowDesc _network_content_list_desc(
- WDP_CENTER, 630, 460,
+ WDP_CENTER, "list_content", 630, 460,
WC_NETWORK_WINDOW, WC_NONE,
0,
_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets)
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 80cdcda83..56cc35e4e 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1012,7 +1012,7 @@ static const NWidgetPart _nested_network_game_widgets[] = {
};
static WindowDesc _network_game_window_desc(
- WDP_CENTER, 1000, 730,
+ WDP_CENTER, "list_servers", 1000, 730,
WC_NETWORK_WINDOW, WC_NONE,
0,
_nested_network_game_widgets, lengthof(_nested_network_game_widgets)
@@ -1327,7 +1327,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
};
static WindowDesc _network_start_server_window_desc(
- WDP_CENTER, 0, 0,
+ WDP_CENTER, NULL, 0, 0,
WC_NETWORK_WINDOW, WC_NONE,
0,
_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
@@ -1616,7 +1616,7 @@ static const NWidgetPart _nested_network_lobby_window_widgets[] = {
};
static WindowDesc _network_lobby_window_desc(
- WDP_CENTER, 0, 0,
+ WDP_CENTER, NULL, 0, 0,
WC_NETWORK_WINDOW, WC_NONE,
0,
_nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
@@ -1665,7 +1665,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = {
};
static WindowDesc _client_list_popup_desc(
- WDP_AUTO, 0, 0,
+ WDP_AUTO, NULL, 0, 0,
WC_CLIENT_LIST_POPUP, WC_CLIENT_LIST,
0,
_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
@@ -1841,7 +1841,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
};
static WindowDesc _client_list_desc(
- WDP_AUTO, 0, 0,
+ WDP_AUTO, "list_clients", 0, 0,
WC_CLIENT_LIST, WC_NONE,
0,
_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
@@ -2113,7 +2113,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
};
static WindowDesc _network_join_status_window_desc(
- WDP_CENTER, 0, 0,
+ WDP_CENTER, NULL, 0, 0,
WC_NETWORK_STATUS_WINDOW, WC_NONE,
WDF_MODAL,
_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
@@ -2207,7 +2207,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
};
static WindowDesc _network_company_password_window_desc(
- WDP_AUTO, 0, 0,
+ WDP_AUTO, NULL, 0, 0,
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
0,
_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)