|
@@ -251,18 +251,18 @@ static const Widget _newgrf_add_dlg_widg
|
|
|
{ WWT_PUSHTXTBTN, RESIZE_LRTB, COLOUR_GREY, 147, 294, 225, 236, STR_NEWGRF_RESCAN_FILES, STR_NEWGRF_RESCAN_FILES_TIP }, // ANGRFW_RESCAN
|
|
|
{ WWT_RESIZEBOX, RESIZE_LRTB, COLOUR_GREY, 295, 306, 225, 236, 0x0, STR_RESIZE_BUTTON }, // ANGRFW_RESIZE
|
|
|
{ WIDGETS_END },
|
|
|
};
|
|
|
|
|
|
/* Window definition for the add a newgrf window */
|
|
|
static const WindowDesc _newgrf_add_dlg_desc = {
|
|
|
static const WindowDesc _newgrf_add_dlg_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 307, 237, 307, 337,
|
|
|
WC_SAVELOAD, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
|
|
_newgrf_add_dlg_widgets,
|
|
|
};
|
|
|
_newgrf_add_dlg_widgets
|
|
|
);
|
|
|
|
|
|
static GRFPresetList _grf_preset_list;
|
|
|
|
|
|
class DropDownListPresetItem : public DropDownListItem {
|
|
|
public:
|
|
|
DropDownListPresetItem(int result) : DropDownListItem(result, false) {}
|
|
@@ -750,18 +750,18 @@ static const Widget _newgrf_widgets[] =
|
|
|
{ WWT_PUSHTXTBTN, RESIZE_RTB, COLOUR_MAUVE, 0, 287, 251, 262, STR_CONTENT_INTRO_BUTTON, STR_CONTENT_INTRO_BUTTON_TIP }, // SNGRFS_DOWNLOAD_CONTENT
|
|
|
{ WWT_RESIZEBOX, RESIZE_LRTB, COLOUR_MAUVE, 288, 299, 251, 262, 0x0, STR_RESIZE_BUTTON }, // SNGRFS_RESIZE
|
|
|
{ WIDGETS_END },
|
|
|
};
|
|
|
|
|
|
/* Window definition of the manage newgrfs window */
|
|
|
static const WindowDesc _newgrf_desc = {
|
|
|
static const WindowDesc _newgrf_desc(
|
|
|
WDP_CENTER, WDP_CENTER, 300, 263, 300, 263,
|
|
|
WC_GAME_OPTIONS, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE,
|
|
|
_newgrf_widgets,
|
|
|
};
|
|
|
_newgrf_widgets
|
|
|
);
|
|
|
|
|
|
/** Callback function for the newgrf 'apply changes' confirmation window
|
|
|
* @param w Window which is calling this callback
|
|
|
* @param confirmed boolean value, true when yes was clicked, false otherwise
|
|
|
*/
|
|
|
static void NewGRFConfirmationCallback(Window *w, bool confirmed)
|