mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r18311) -Codechange: no need to hardcode locations of some 'random' windows
This commit is contained in:
parent
2dbf1d72f9
commit
ff32ea24fc
|
@ -316,7 +316,7 @@ struct CheatWindow : Window {
|
|||
};
|
||||
|
||||
static const WindowDesc _cheats_desc(
|
||||
240, 22, 0, 0,
|
||||
WDP_AUTO, WDP_AUTO, 0, 0,
|
||||
WC_CHEATS, WC_NONE,
|
||||
WDF_UNCLICK_BUTTONS,
|
||||
_nested_cheat_widgets, lengthof(_nested_cheat_widgets)
|
||||
|
|
|
@ -2100,7 +2100,7 @@ static const NWidgetPart _nested_buy_company_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _buy_company_desc(
|
||||
153, 171, 334, 137,
|
||||
WDP_AUTO, WDP_AUTO, 334, 137,
|
||||
WC_BUY_COMPANY, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
|
||||
|
|
|
@ -1428,7 +1428,7 @@ static const NWidgetPart _nested_query_string_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _query_string_desc(
|
||||
190, 219, 260, 42,
|
||||
WDP_AUTO, WDP_AUTO, 260, 42,
|
||||
WC_QUERY_STRING, WC_NONE,
|
||||
0,
|
||||
_nested_query_string_widgets, lengthof(_nested_query_string_widgets)
|
||||
|
|
|
@ -409,7 +409,7 @@ static const NWidgetPart _nested_music_track_selection_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _music_track_selection_desc(
|
||||
104, 131, 432, 218,
|
||||
WDP_AUTO, WDP_AUTO, 432, 218,
|
||||
WC_MUSIC_TRACK_SELECTION, WC_NONE,
|
||||
WDF_UNCLICK_BUTTONS,
|
||||
_nested_music_track_selection_widgets, lengthof(_nested_music_track_selection_widgets)
|
||||
|
@ -713,7 +713,7 @@ static const NWidgetPart _nested_music_window_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _music_window_desc(
|
||||
0, 22, 300, 66,
|
||||
WDP_AUTO, WDP_AUTO, 300, 66,
|
||||
WC_MUSIC_WINDOW, WC_NONE,
|
||||
WDF_UNCLICK_BUTTONS,
|
||||
_nested_music_window_widgets, lengthof(_nested_music_window_widgets)
|
||||
|
|
|
@ -1026,7 +1026,7 @@ static const NWidgetPart _nested_message_history[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _message_history_desc(
|
||||
240, 22, 400, 140,
|
||||
WDP_AUTO, WDP_AUTO, 400, 140,
|
||||
WC_MESSAGE_HISTORY, WC_NONE,
|
||||
WDF_UNCLICK_BUTTONS,
|
||||
_nested_message_history, lengthof(_nested_message_history)
|
||||
|
@ -1312,7 +1312,7 @@ static const NWidgetPart _nested_message_options_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _message_options_desc(
|
||||
270, 22, 0, 0,
|
||||
WDP_AUTO, WDP_AUTO, 0, 0,
|
||||
WC_GAME_OPTIONS, WC_NONE,
|
||||
WDF_UNCLICK_BUTTONS,
|
||||
_nested_message_options_widgets, lengthof(_nested_message_options_widgets)
|
||||
|
|
|
@ -408,7 +408,7 @@ static const NWidgetPart _nested_query_sign_edit_widgets[] = {
|
|||
};
|
||||
|
||||
static const WindowDesc _query_sign_edit_desc(
|
||||
190, 170, 260, 42,
|
||||
WDP_AUTO, WDP_AUTO, 260, 42,
|
||||
WC_QUERY_STRING, WC_NONE,
|
||||
WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
|
||||
_nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)
|
||||
|
|
Loading…
Reference in New Issue