|
@@ -1011,13 +1011,13 @@ static const NWidgetPart _nested_network
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _network_game_window_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 450, 264, 1000, 730,
|
|
|
WC_NETWORK_WINDOW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
|
|
NULL, _nested_network_game_widgets, lengthof(_nested_network_game_widgets)
|
|
|
_nested_network_game_widgets, lengthof(_nested_network_game_widgets)
|
|
|
);
|
|
|
|
|
|
void ShowNetworkGameWindow()
|
|
|
{
|
|
|
static bool first = true;
|
|
|
DeleteWindowById(WC_NETWORK_WINDOW, 0);
|
|
@@ -1428,13 +1428,13 @@ static const NWidgetPart _nested_network
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _network_start_server_window_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 420, 244, 420, 244,
|
|
|
WC_NETWORK_WINDOW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
|
|
|
NULL, _nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
|
|
|
_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
|
|
|
);
|
|
|
|
|
|
static void ShowNetworkStartServerWindow()
|
|
|
{
|
|
|
DeleteWindowById(WC_NETWORK_WINDOW, 0);
|
|
|
|
|
@@ -1719,13 +1719,13 @@ static const NWidgetPart _nested_network
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _network_lobby_window_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 0, 0, 0, 0,
|
|
|
WC_NETWORK_WINDOW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
|
|
NULL, _nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
|
|
|
_nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
|
|
|
);
|
|
|
|
|
|
/* Show the networklobbywindow with the selected server
|
|
|
* @param ngl Selected game pointer which is passed to the new window */
|
|
|
static void ShowNetworkLobbyWindow(NetworkGameList *ngl)
|
|
|
{
|
|
@@ -1762,13 +1762,13 @@ static const NWidgetPart _nested_client_
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _client_list_popup_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 150, 1, 150, 1,
|
|
|
WC_TOOLBAR_MENU, WC_CLIENT_LIST,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
|
|
|
NULL, _nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
|
|
|
_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
|
|
|
);
|
|
|
|
|
|
/* Finds the Xth client-info that is active */
|
|
|
static NetworkClientInfo *NetworkFindClientInfo(byte client_no)
|
|
|
{
|
|
|
NetworkClientInfo *ci;
|
|
@@ -1978,13 +1978,13 @@ static const NWidgetPart _nested_client_
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _client_list_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 250, 16, 250, 16,
|
|
|
WC_CLIENT_LIST, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
NULL, _nested_client_list_widgets, lengthof(_nested_client_list_widgets)
|
|
|
_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
|
|
|
);
|
|
|
|
|
|
/**
|
|
|
* Main handle for clientlist
|
|
|
*/
|
|
|
struct NetworkClientListWindow : Window {
|
|
@@ -2217,13 +2217,13 @@ static const NWidgetPart _nested_network
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _network_join_status_window_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 250, 85, 250, 85,
|
|
|
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL,
|
|
|
NULL, _nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
|
|
|
_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
|
|
|
);
|
|
|
|
|
|
void ShowJoinStatusWindow()
|
|
|
{
|
|
|
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
|
|
|
new NetworkJoinStatusWindow(&_network_join_status_window_desc);
|
|
@@ -2342,13 +2342,13 @@ static const NWidgetPart _nested_network
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _network_company_password_window_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 300, 63, 300, 63,
|
|
|
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
|
|
|
NULL, _nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
|
|
|
_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
|
|
|
);
|
|
|
|
|
|
void ShowNetworkCompanyPasswordWindow(Window *parent)
|
|
|
{
|
|
|
DeleteWindowById(WC_COMPANY_PASSWORD_WINDOW, 0);
|
|
|
|