Changeset - r17206:f8430ed702e7
[Not reviewed]
master
0 4 0
rubidium - 14 years ago 2011-02-04 14:38:15
rubidium@openttd.org
(svn r21955) -Cleanup: always show the long date in the status bar
4 files changed with 1 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -1119,13 +1119,12 @@ STR_CONFIG_SETTING_GOTODEPOT            
 
STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD             :{LTBLUE}Manual primary industry construction method: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD_NONE        :none
 
STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD_NORMAL      :as other industries
 
STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD_PROSPECTING :prospecting
 
STR_CONFIG_SETTING_INDUSTRY_PLATFORM                            :{LTBLUE}Flat area around industries: {ORANGE}{STRING1} tile{P 0:1 "" s}
 
STR_CONFIG_SETTING_MULTIPINDTOWN                                :{LTBLUE}Allow multiple similar industries per town: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_LONGDATE                                     :{LTBLUE}Always show long date in the status bar: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_SIGNALSIDE                                   :{LTBLUE}Show signals on the drive side: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_SHOWFINANCES                                 :{LTBLUE}Show finances window at the end of the year: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_NONSTOP_BY_DEFAULT                           :{LTBLUE}New orders are 'non-stop' by default: {ORANGE}{STRING1}
 
STR_CONFIG_SETTING_STOP_LOCATION                                :{LTBLUE}New train orders stop by default at the {ORANGE}{STRING1}{LTBLUE} of the platform
 
STR_CONFIG_SETTING_STOP_LOCATION_NEAR_END                       :near end
 
STR_CONFIG_SETTING_STOP_LOCATION_MIDDLE                         :middle
 
@@ -4236,13 +4235,12 @@ STR_TINY_COMMA                          
 
STR_BLUE_COMMA                                                  :{BLUE}{COMMA}
 
STR_RED_COMMA                                                   :{RED}{COMMA}
 
STR_COMPANY_MONEY                                               :{WHITE}{CURRENCY}
 
STR_BLACK_DATE_LONG                                             :{BLACK}{DATE_LONG}
 
STR_BLACK_CROSS                                                 :{BLACK}{CROSS}
 
STR_SILVER_CROSS                                                :{SILVER}{CROSS}
 
STR_WHITE_DATE_SHORT                                            :{WHITE}{DATE_SHORT}
 
STR_WHITE_DATE_LONG                                             :{WHITE}{DATE_LONG}
 
STR_SHORT_DATE                                                  :{WHITE}{DATE_TINY}
 
STR_DATE_LONG_SMALL                                             :{TINYFONT}{BLACK}{DATE_LONG}
 
STR_TINY_GROUP                                                  :{TINYFONT}{GROUP}
 
STR_BLACK_INT                                                   :{BLACK}{NUM}
 
STR_ORANGE_INT                                                  :{ORANGE}{NUM}
src/settings_type.h
Show inline comments
 
@@ -43,13 +43,12 @@ struct DifficultySettings {
 
/** Settings related to the GUI and other stuff that is not saved in the savegame. */
 
struct GUISettings {
 
	bool   sg_full_load_any;                 ///< new full load calculation, any cargo must be full read from pre v93 savegames
 
	bool   lost_vehicle_warn;                ///< if a vehicle can't find its destination, show a warning
 
	uint8  order_review_system;              ///< perform order reviews on vehicles
 
	bool   vehicle_income_warn;              ///< if a vehicle isn't generating income, show a warning
 
	bool   status_long_date;                 ///< always show long date in status bar
 
	bool   show_finances;                    ///< show finances at end of year
 
	bool   sg_new_nonstop;                   ///< ttdpatch compatible nonstop handling read from pre v93 savegames
 
	bool   new_nonstop;                      ///< ttdpatch compatible nonstop handling
 
	uint8  stop_location;                    ///< what is the default stop location of trains?
 
	bool   autoscroll;                       ///< scroll when moving mouse to the edge
 
	byte   errmsg_duration;                  ///< duration of error message
src/statusbar_gui.cpp
Show inline comments
 
@@ -133,13 +133,13 @@ struct StatusBarWindow : Window {
 
	virtual void DrawWidget(const Rect &r, int widget) const
 
	{
 
		switch (widget) {
 
			case SBW_LEFT:
 
				/* Draw the date */
 
				SetDParam(0, _date);
 
				DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, (_pause_mode || _settings_client.gui.status_long_date) ? STR_WHITE_DATE_LONG : STR_WHITE_DATE_SHORT, TC_FROMSTRING, SA_HOR_CENTER);
 
				DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, STR_WHITE_DATE_LONG, TC_FROMSTRING, SA_HOR_CENTER);
 
				break;
 

	
 
			case SBW_RIGHT: {
 
				/* Draw company money, if any */
 
				const Company *c = Company::GetIfValid(_local_company);
 
				if (c != NULL) {
src/table/settings.h
Show inline comments
 
@@ -560,13 +560,12 @@ const SettingDesc _settings[] = {
 

	
 
	/***************************************************************************/
 
	/* Unsaved setting variables. */
 
	SDTC_OMANY(gui.autosave,                  SLE_UINT8, S,  0, 1, 4, _autosave_interval,     STR_NULL,                                       NULL),
 
	 SDTC_BOOL(gui.threaded_saves,                       S,  0,  true,                        STR_NULL,                                       NULL),
 
	SDTC_OMANY(gui.date_format_in_default_names,SLE_UINT8,S,MS, 0, 2, _savegame_date,         STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES,   NULL),
 
	 SDTC_BOOL(gui.status_long_date,                     S,  0,  true,                        STR_CONFIG_SETTING_LONGDATE,                    NULL),
 
	 SDTC_BOOL(gui.show_finances,                        S,  0,  true,                        STR_CONFIG_SETTING_SHOWFINANCES,                NULL),
 
	 SDTC_BOOL(gui.autoscroll,                           S,  0, false,                        STR_CONFIG_SETTING_AUTOSCROLL,                  NULL),
 
	 SDTC_BOOL(gui.reverse_scroll,                       S,  0, false,                        STR_CONFIG_SETTING_REVERSE_SCROLLING,           NULL),
 
	 SDTC_BOOL(gui.smooth_scroll,                        S,  0, false,                        STR_CONFIG_SETTING_SMOOTH_SCROLLING,            NULL),
 
	 SDTC_BOOL(gui.left_mouse_btn_scrolling,             S,  0, false,                        STR_CONFIG_SETTING_LEFT_MOUSE_BTN_SCROLLING,    NULL),
 
	 SDTC_BOOL(gui.measure_tooltip,                      S,  0,  true,                        STR_CONFIG_SETTING_MEASURE_TOOLTIP,             NULL),
0 comments (0 inline, 0 general)