mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
This commit is contained in:
@@ -543,7 +543,7 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _chat_window_desc(
|
||||
WDP_CENTER, 0, 320, 14, 640, 14, // x, y, width, height
|
||||
WDP_CENTER, 0, 640, 14, // x, y, width, height
|
||||
WC_SEND_NETWORK_MSG, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
|
||||
_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
|
||||
|
@@ -47,7 +47,7 @@ static const NWidgetPart _nested_network_content_download_status_window_widgets[
|
||||
|
||||
/** Window description for the download window */
|
||||
static const WindowDesc _network_content_download_status_window_desc(
|
||||
WDP_CENTER, WDP_CENTER, 350, 85, 350, 85,
|
||||
WDP_CENTER, WDP_CENTER, 350, 85,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL,
|
||||
_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets)
|
||||
@@ -868,7 +868,7 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
|
||||
|
||||
/** Window description of the content list */
|
||||
static const WindowDesc _network_content_list_desc(
|
||||
WDP_CENTER, WDP_CENTER, 450, 278, 630, 460,
|
||||
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,
|
||||
_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets)
|
||||
|
@@ -1001,7 +1001,7 @@ static const NWidgetPart _nested_network_game_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _network_game_window_desc(
|
||||
WDP_CENTER, WDP_CENTER, 450, 264, 1000, 730,
|
||||
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,
|
||||
_nested_network_game_widgets, lengthof(_nested_network_game_widgets)
|
||||
@@ -1418,7 +1418,7 @@ static const NWidgetPart _nested_network_start_server_window_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _network_start_server_window_desc(
|
||||
WDP_CENTER, WDP_CENTER, 420, 244, 420, 244,
|
||||
WDP_CENTER, WDP_CENTER, 420, 244,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
|
||||
_nested_network_start_server_window_widgets, lengthof(_nested_network_start_server_window_widgets)
|
||||
@@ -1709,7 +1709,7 @@ static const NWidgetPart _nested_network_lobby_window_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _network_lobby_window_desc(
|
||||
WDP_CENTER, WDP_CENTER, 0, 0, 0, 0,
|
||||
WDP_CENTER, WDP_CENTER, 0, 0,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
||||
_nested_network_lobby_window_widgets, lengthof(_nested_network_lobby_window_widgets)
|
||||
@@ -1752,7 +1752,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _client_list_popup_desc(
|
||||
WDP_AUTO, WDP_AUTO, 150, 1, 150, 1,
|
||||
WDP_AUTO, WDP_AUTO, 150, 1,
|
||||
WC_TOOLBAR_MENU, WC_CLIENT_LIST,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
|
||||
_nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets)
|
||||
@@ -1968,7 +1968,7 @@ static const NWidgetPart _nested_client_list_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _client_list_desc(
|
||||
WDP_AUTO, WDP_AUTO, 250, 16, 250, 16,
|
||||
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,
|
||||
_nested_client_list_widgets, lengthof(_nested_client_list_widgets)
|
||||
@@ -2207,7 +2207,7 @@ static const NWidgetPart _nested_network_join_status_window_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _network_join_status_window_desc(
|
||||
WDP_CENTER, WDP_CENTER, 250, 85, 250, 85,
|
||||
WDP_CENTER, WDP_CENTER, 250, 85,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_MODAL,
|
||||
_nested_network_join_status_window_widgets, lengthof(_nested_network_join_status_window_widgets)
|
||||
@@ -2332,7 +2332,7 @@ static const NWidgetPart _nested_network_company_password_window_widgets[] = {
|
||||
};
|
||||
|
||||
static const WindowDesc _network_company_password_window_desc(
|
||||
WDP_AUTO, WDP_AUTO, 300, 63, 300, 63,
|
||||
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,
|
||||
_nested_network_company_password_window_widgets, lengthof(_nested_network_company_password_window_widgets)
|
||||
|
Reference in New Issue
Block a user