src/settings_gui.cpp
changeset 6980 c7c4f3bf5901
parent 6956 3579bfc5157b
child 6998 39e783d3816c
equal deleted inserted replaced
6979:c4abd9b85a7a 6980:c7c4f3bf5901
   650 	 *  Since it's also able to completely disable the scrollwheel will we display it on all platforms anyway */
   650 	 *  Since it's also able to completely disable the scrollwheel will we display it on all platforms anyway */
   651 	"scrollwheel_scrolling",
   651 	"scrollwheel_scrolling",
   652 	"scrollwheel_multiplier",
   652 	"scrollwheel_multiplier",
   653 	"pause_on_newgame",
   653 	"pause_on_newgame",
   654 	"advanced_vehicle_list",
   654 	"advanced_vehicle_list",
       
   655 	"timetable_in_ticks",
   655 };
   656 };
   656 
   657 
   657 static const char *_patches_construction[] = {
   658 static const char *_patches_construction[] = {
   658 	"build_on_slopes",
   659 	"build_on_slopes",
   659 	"extra_dynamite",
   660 	"extra_dynamite",
   733 	"servint_aircraft",
   734 	"servint_aircraft",
   734 	"no_servicing_if_no_breakdowns",
   735 	"no_servicing_if_no_breakdowns",
   735 	"wagon_speed_limits",
   736 	"wagon_speed_limits",
   736 	"disable_elrails",
   737 	"disable_elrails",
   737 	"freight_trains",
   738 	"freight_trains",
       
   739 	"timetabling",
   738 };
   740 };
   739 
   741 
   740 struct PatchEntry {
   742 struct PatchEntry {
   741 	const SettingDesc *setting;
   743 	const SettingDesc *setting;
   742 	uint index;
   744 	uint index;
   975 
   977 
   976 static const Widget _patches_selection_widgets[] = {
   978 static const Widget _patches_selection_widgets[] = {
   977 {   WWT_CLOSEBOX,   RESIZE_NONE,    10,     0,    10,     0,    13, STR_00C5,                        STR_018B_CLOSE_WINDOW},
   979 {   WWT_CLOSEBOX,   RESIZE_NONE,    10,     0,    10,     0,    13, STR_00C5,                        STR_018B_CLOSE_WINDOW},
   978 {    WWT_CAPTION,   RESIZE_NONE,    10,    11,   369,     0,    13, STR_CONFIG_PATCHES_CAPTION,      STR_018C_WINDOW_TITLE_DRAG_THIS},
   980 {    WWT_CAPTION,   RESIZE_NONE,    10,    11,   369,     0,    13, STR_CONFIG_PATCHES_CAPTION,      STR_018C_WINDOW_TITLE_DRAG_THIS},
   979 {      WWT_PANEL,   RESIZE_NONE,    10,     0,   369,    14,    41, 0x0,                             STR_NULL},
   981 {      WWT_PANEL,   RESIZE_NONE,    10,     0,   369,    14,    41, 0x0,                             STR_NULL},
   980 {      WWT_PANEL,   RESIZE_NONE,    10,     0,   369,    42,   370, 0x0,                             STR_NULL},
   982 {      WWT_PANEL,   RESIZE_NONE,    10,     0,   369,    42,   380, 0x0,                             STR_NULL},
   981 
   983 
   982 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    10,    96,    16,    27, STR_CONFIG_PATCHES_GUI,          STR_NULL},
   984 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    10,    96,    16,    27, STR_CONFIG_PATCHES_GUI,          STR_NULL},
   983 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    97,   183,    16,    27, STR_CONFIG_PATCHES_CONSTRUCTION, STR_NULL},
   985 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    97,   183,    16,    27, STR_CONFIG_PATCHES_CONSTRUCTION, STR_NULL},
   984 {    WWT_TEXTBTN,   RESIZE_NONE,     3,   184,   270,    16,    27, STR_CONFIG_PATCHES_VEHICLES,     STR_NULL},
   986 {    WWT_TEXTBTN,   RESIZE_NONE,     3,   184,   270,    16,    27, STR_CONFIG_PATCHES_VEHICLES,     STR_NULL},
   985 {    WWT_TEXTBTN,   RESIZE_NONE,     3,   271,   357,    16,    27, STR_CONFIG_PATCHES_STATIONS,     STR_NULL},
   987 {    WWT_TEXTBTN,   RESIZE_NONE,     3,   271,   357,    16,    27, STR_CONFIG_PATCHES_STATIONS,     STR_NULL},
   987 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    97,   183,    28,    39, STR_CONFIG_PATCHES_AI,           STR_NULL},
   989 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    97,   183,    28,    39, STR_CONFIG_PATCHES_AI,           STR_NULL},
   988 {   WIDGETS_END},
   990 {   WIDGETS_END},
   989 };
   991 };
   990 
   992 
   991 static const WindowDesc _patches_selection_desc = {
   993 static const WindowDesc _patches_selection_desc = {
   992 	WDP_CENTER, WDP_CENTER, 370, 371,
   994 	WDP_CENTER, WDP_CENTER, 370, 381,
   993 	WC_GAME_OPTIONS, WC_NONE,
   995 	WC_GAME_OPTIONS, WC_NONE,
   994 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   996 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   995 	_patches_selection_widgets,
   997 	_patches_selection_widgets,
   996 	PatchesSelectionWndProc,
   998 	PatchesSelectionWndProc,
   997 };
   999 };