summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-08 17:56:08 +0000
committerbjarni <bjarni@openttd.org>2006-10-08 17:56:08 +0000
commitcc802953a329275ac5ac9fed72416b5a581d4556 (patch)
tree43ad262e3cfca516516e25ffcef3b9802beca2a1
parente7149e316e3e87112d268d714ddd7148da7bc166 (diff)
downloadopenttd-cc802953a329275ac5ac9fed72416b5a581d4556.tar.xz
(svn r6689) -Fix: corrected vehicle type in tooltip for the list in the refit window
This was actually not a bug from unifying this window as it was incorrect even before they were merged
-rw-r--r--lang/english.txt1
-rw-r--r--vehicle_gui.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/lang/english.txt b/lang/english.txt
index c8eb9d5a6..5c2244c42 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -2684,6 +2684,7 @@ STR_REFIT_ROAD_VEHICLE_TO_CARRY :{BLACK}Refit ro
STR_REFIT_ROAD_VEHICLE :{BLACK}Refit road vehicle
STR_REFIT_ROAD_VEHICLE_TO_CARRY_HIGHLIGHTED :{BLACK}Refit road vehicle to carry highlighted cargo type
STR_REFIT_ROAD_VEHICLE_CAN_T :{WHITE}Can't refit road vehicle...
+STR_ROAD_SELECT_TYPE_OF_CARGO_FOR :{BLACK}Select type of cargo for road vehicle to carry
##id 0x9800
STR_9800_DOCK_CONSTRUCTION :Dock construction
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 6d65fee7e..db05bd994 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -414,7 +414,7 @@ static const Widget _vehicle_refit_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_NONE, 14, 11, 239, 0, 13, STR_983B_REFIT, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_TEXTBTN, RESIZE_NONE, 14, 0, 239, 14, 27, STR_983F_SELECT_CARGO_TYPE_TO_CARRY, STR_983D_SELECT_TYPE_OF_CARGO_FOR},
- { WWT_MATRIX, RESIZE_BOTTOM, 14, 0, 227, 28, 139, 0x801, STR_983D_SELECT_TYPE_OF_CARGO_FOR},
+ { WWT_MATRIX, RESIZE_BOTTOM, 14, 0, 227, 28, 139, 0x801, STR_EMPTY},
{ WWT_SCROLLBAR, RESIZE_BOTTOM, 14, 228, 239, 28, 139, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
{ WWT_IMGBTN, RESIZE_TB, 14, 0, 239, 140, 161, 0x0, STR_NULL},
{ WWT_PUSHTXTBTN, RESIZE_TB, 14, 0, 227, 162, 173, 0x0, STR_NULL},
@@ -456,18 +456,22 @@ void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order)
switch (v->type) {
case VEH_Train:
+ w->widget[3].tooltips = STR_RAIL_SELECT_TYPE_OF_CARGO_FOR;
w->widget[6].data = STR_RAIL_REFIT_VEHICLE;
w->widget[6].tooltips = STR_RAIL_REFIT_TO_CARRY_HIGHLIGHTED;
break;
case VEH_Road:
+ w->widget[3].tooltips = STR_ROAD_SELECT_TYPE_OF_CARGO_FOR;
w->widget[6].data = STR_REFIT_ROAD_VEHICLE;
w->widget[6].tooltips = STR_REFIT_ROAD_VEHICLE_TO_CARRY_HIGHLIGHTED;
break;
case VEH_Ship:
+ w->widget[3].tooltips = STR_983D_SELECT_TYPE_OF_CARGO_FOR;
w->widget[6].data = STR_983C_REFIT_SHIP;
w->widget[6].tooltips = STR_983E_REFIT_SHIP_TO_CARRY_HIGHLIGHTED;
break;
case VEH_Aircraft:
+ w->widget[3].tooltips = STR_A03E_SELECT_TYPE_OF_CARGO_FOR;
w->widget[6].data = STR_A03D_REFIT_AIRCRAFT;
w->widget[6].tooltips = STR_A03F_REFIT_AIRCRAFT_TO_CARRY;
break;