Mercurial > hg > openttd
changeset 12590:f725939721be draft
(svn r17030) -Codechange: Better descriptions for buoys.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 01 Aug 2009 17:46:31 +0000 |
parents | 4e5e65601040 |
children | 8d8f3beeab37 |
files | src/lang/english.txt src/waypoint_gui.cpp |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1833,6 +1833,8 @@ 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 @@ -2748,6 +2750,7 @@ 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}
--- a/src/waypoint_gui.cpp +++ b/src/waypoint_gui.cpp @@ -44,7 +44,11 @@ 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; @@ -124,8 +128,8 @@ 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(), };