Changeset - r12580:d40855379543
[Not reviewed]
master
0 2 0
alberth - 15 years ago 2009-08-01 17:46:31
alberth@openttd.org
(svn r17030) -Codechange: Better descriptions for buoys.
2 files changed with 10 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -1830,12 +1830,14 @@ STR_STATION_BUILD_NUMBER_OF_TRACKS_TOOLT
 
STR_STATION_BUILD_PLATFORM_LENGTH_TOOLTIP                       :{BLACK}Select length of railway station
 
STR_STATION_BUILD_BUS_ORIENTATION_TOOLTIP                       :{BLACK}Select bus station orientation
 
STR_STATION_BUILD_TRUCK_ORIENTATION_TOOLTIP                     :{BLACK}Select lorry loading bay orientation
 
STR_STATION_BUILD_PASSENGER_TRAM_ORIENTATION_TOOLTIP            :{BLACK}Select passenger tram station orientation
 
STR_STATION_BUILD_CARGO_TRAM_ORIENTATION_TOOLTIP                :{BLACK}Select freight tram station orientation
 
STR_STATION_VIEW_CENTER_TOOLTIP                                 :{BLACK}Centre main view on station location
 
STR_WAYPOINT_VIEW_CENTER_TOOLTIP                                :{BLACK}Centre main view on waypoint location
 
STR_BUOY_VIEW_CENTER_TOOLTIP                                    :{BLACK}Centre main view on buoy location
 
STR_STATION_VIEW_RATINGS_TOOLTIP                                :{BLACK}Show station ratings
 
STR_STATION_VIEW_RENAME_TOOLTIP                                 :{BLACK}Change name of station
 
STR_STATION_VIEW_ACCEPTS_TOOLTIP                                :{BLACK}Show list of accepted cargo
 
STR_STATION_LIST_TOOLTIP                                        :{BLACK}Station names - click on name to centre view on station
 
STR_STATION_BUILD_AIRPORT_TOOLTIP                               :{BLACK}Select size/type of airport
 
STR_STATION_SIGN                                                :{STATION} {STATIONFEATURES}
 
@@ -2745,12 +2747,13 @@ STR_NEWS_TRAIN_CRASH                    
 
STR_ERROR_CAN_T_REVERSE_DIRECTION_TRAIN                         :{WHITE}Can't reverse direction of train...
 
STR_ERROR_CAN_T_REVERSE_DIRECTION_RAIL_VEHICLE                  :{WHITE}Can't reverse direction of vehicle...
 
STR_ERROR_CAN_T_REVERSE_DIRECTION_RAIL_VEHICLE_MULTIPLE_UNITS   :{WHITE}Can't reverse direction of vehicles consisting of multiple units...
 
STR_CLEAR_TIME                                                  :{BLACK}Clear Time
 
STR_RESET_LATENESS                                              :{BLACK}Reset Late Counter
 
STR_CHANGE_WAYPOINT_NAME                                        :{BLACK}Change waypoint name
 
STR_CHANGE_BUOY_NAME                                            :{BLACK}Change buoy name
 

	
 
STR_TRAIN_STOPPING                                              :{RED}Stopping
 
STR_TRAIN_STOPPING_VEL                                          :{RED}Stopping, {VELOCITY}
 
STR_INCOMPATIBLE_RAIL_TYPES                                     :Incompatible rail types
 
STR_TRAIN_NO_POWER                                              :{RED}No power
 
STR_TRAIN_START_NO_CATENARY                                     :This track lacks catenary, so the train can't start
src/waypoint_gui.cpp
Show inline comments
 
@@ -41,13 +41,17 @@ public:
 
		this->wp = Waypoint::Get(window_number);
 
		this->vt = (wp->string_id == STR_SV_STNAME_WAYPOINT) ? VEH_TRAIN : VEH_SHIP;
 

	
 
		if (this->wp->owner != OWNER_NONE) this->owner = this->wp->owner;
 

	
 
		this->CreateNestedTree(desc);
 
		if (this->vt == VEH_TRAIN) this->nested_array[WAYPVW_SHOW_VEHICLES]->SetDataTip(STR_TRAIN, STR_SCHEDULED_TRAINS_TIP);
 
		if (this->vt == VEH_TRAIN) {
 
			this->nested_array[WAYPVW_SHOW_VEHICLES]->SetDataTip(STR_TRAIN, STR_SCHEDULED_TRAINS_TIP);
 
			this->nested_array[WAYPVW_CENTERVIEW]->tool_tip = STR_WAYPOINT_VIEW_CENTER_TOOLTIP;
 
			this->nested_array[WAYPVW_RENAME]->tool_tip = STR_CHANGE_WAYPOINT_NAME;
 
		}
 
		this->FinishInitNested(desc, window_number);
 

	
 
		this->flags4 |= WF_DISABLE_VP_SCROLL;
 
		NWidgetViewport *nvp = (NWidgetViewport *)this->nested_array[WAYPVW_VIEWPORT];
 
		nvp->InitializeViewport(this, this->wp->xy, ZOOM_LVL_MIN);
 

	
 
@@ -121,14 +125,14 @@ static const NWidgetPart _nested_waypoin
 
	NWidget(WWT_PANEL, COLOUR_GREY, WAYPVW_VIEWPORTPANEL),
 
		NWidget(WWT_INSET, COLOUR_GREY, WAYPVW_SPACER), SetPadding(2, 2, 2, 2),
 
			NWidget(NWID_VIEWPORT, COLOUR_GREY, WAYPVW_VIEWPORT), SetMinimalSize(256, 88), SetPadding(1, 1, 1, 1),
 
		EndContainer(),
 
	EndContainer(),
 
	NWidget(NWID_HORIZONTAL),
 
		NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WAYPVW_CENTERVIEW), SetMinimalSize(100, 12), SetFill(1, 0), SetDataTip(STR_BUTTON_LOCATION, STR_STATION_VIEW_CENTER_TOOLTIP),
 
		NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WAYPVW_RENAME), SetMinimalSize(100, 12), SetFill(1, 0), SetDataTip(STR_QUERY_RENAME, STR_CHANGE_WAYPOINT_NAME),
 
		NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WAYPVW_CENTERVIEW), SetMinimalSize(100, 12), SetFill(1, 0), SetDataTip(STR_BUTTON_LOCATION, STR_BUOY_VIEW_CENTER_TOOLTIP),
 
		NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WAYPVW_RENAME), SetMinimalSize(100, 12), SetFill(1, 0), SetDataTip(STR_QUERY_RENAME, STR_CHANGE_BUOY_NAME),
 
		NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WAYPVW_SHOW_VEHICLES), SetMinimalSize(15, 12), SetDataTip(STR_SHIP, STR_SCHEDULED_SHIPS_TIP),
 
	EndContainer(),
 
};
 

	
 
static const WindowDesc _waypoint_view_desc(
 
	WDP_AUTO, WDP_AUTO, 260, 118, 260, 118,
0 comments (0 inline, 0 general)