diff options
author | Darkvater <darkvater@openttd.org> | 2007-01-26 19:24:02 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-01-26 19:24:02 +0000 |
commit | 1b47b17450ddcb3dd3624e0c93bc1210573dd8ba (patch) | |
tree | c7022a9195f194b5be71f11556f7f1fc8728c25f | |
parent | 6fd747adbbcf268dfd7523f70b3f7c23d0ce475d (diff) | |
download | openttd-1b47b17450ddcb3dd3624e0c93bc1210573dd8ba.tar.xz |
(svn r8420) -Codechange (r7418): Rename the 'New <vehtype>' button of the global vehicle lists to 'Available <vehtype>' as it is a view-only list, not one from which you can purchase (rolling) stock.
-rw-r--r-- | src/lang/english.txt | 4 | ||||
-rw-r--r-- | src/vehicle_gui.cpp | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt index ad1dcda6c..e6b116071 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -394,6 +394,10 @@ STR_ENGINE_SORT_CARGO_CAPACITY :Cargo Capacity STR_NO_WAITING_CARGO :{BLACK}No cargo of any type is waiting STR_SELECT_ALL_FACILITIES :{BLACK}Select all facilities STR_SELECT_ALL_TYPES :{BLACK}Select all cargo types (including no waiting cargo) +STR_AVAILABLE_TRAINS :{BLACK}Available Trains +STR_AVAILABLE_VEHICLES :{BLACK}Available Vehicles +STR_AVAILABLE_SHIPS :{BLACK}Available Ships +STR_AVAILABLE_AIRCRAFT :{BLACK}Available Aircraft STR_AVAILABLE_ENGINES_TIP :{BLACK}See a list of available engine designs for this vehicle type. STR_MANAGE_LIST :{BLACK}Manage list STR_MANAGE_LIST_TIP :{BLACK}Send instructions to all vehicles in this list diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index c1bf9d990..24ca1da7f 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -767,7 +767,7 @@ enum VehicleListWindowWidgets { VLW_WIDGET_LIST, VLW_WIDGET_SCROLLBAR, VLW_WIDGET_OTHER_PLAYER_FILLER, - VLW_WIDGET_NEW_VEHICLES, + VLW_WIDGET_AVAILABLE_VEHICLES, VLW_WIDGET_MANAGE_VEHICLES, VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN, VLW_WIDGET_STOP_ALL, @@ -815,10 +815,10 @@ static void CreateVehicleListWindow(Window *w) * Some windows contains actions only fit for the owner */ if (player == _local_player) { HideWindowWidget(w, VLW_WIDGET_OTHER_PLAYER_FILLER); - SetWindowWidgetDisabledState(w, VLW_WIDGET_NEW_VEHICLES, window_type != VLW_STANDARD); + SetWindowWidgetDisabledState(w, VLW_WIDGET_AVAILABLE_VEHICLES, window_type != VLW_STANDARD); } else { SetWindowWidgetsHiddenState(w, true, - VLW_WIDGET_NEW_VEHICLES, + VLW_WIDGET_AVAILABLE_VEHICLES, VLW_WIDGET_MANAGE_VEHICLES, VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN, VLW_WIDGET_STOP_ALL, @@ -831,22 +831,22 @@ static void CreateVehicleListWindow(Window *w) switch (vl->vehicle_type) { case VEH_Train: w->widget[VLW_WIDGET_LIST].tooltips = STR_883D_TRAINS_CLICK_ON_TRAIN_FOR; - w->widget[VLW_WIDGET_NEW_VEHICLES].data = STR_8815_NEW_VEHICLES; + w->widget[VLW_WIDGET_AVAILABLE_VEHICLES].data = STR_AVAILABLE_TRAINS; break; case VEH_Road: w->widget[VLW_WIDGET_LIST].tooltips = STR_901A_ROAD_VEHICLES_CLICK_ON; - w->widget[VLW_WIDGET_NEW_VEHICLES].data = STR_9004_NEW_VEHICLES; + w->widget[VLW_WIDGET_AVAILABLE_VEHICLES].data = STR_AVAILABLE_VEHICLES; break; case VEH_Ship: w->widget[VLW_WIDGET_LIST].tooltips = STR_9823_SHIPS_CLICK_ON_SHIP_FOR; - w->widget[VLW_WIDGET_NEW_VEHICLES].data = STR_9804_NEW_SHIPS; + w->widget[VLW_WIDGET_AVAILABLE_VEHICLES].data = STR_AVAILABLE_SHIPS; break; case VEH_Aircraft: w->widget[VLW_WIDGET_LIST].tooltips = STR_A01F_AIRCRAFT_CLICK_ON_AIRCRAFT; - w->widget[VLW_WIDGET_NEW_VEHICLES].data = STR_A003_NEW_AIRCRAFT; + w->widget[VLW_WIDGET_AVAILABLE_VEHICLES].data = STR_AVAILABLE_AIRCRAFT; break; default: NOT_REACHED(); @@ -1107,7 +1107,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e) } } break; - case VLW_WIDGET_NEW_VEHICLES: + case VLW_WIDGET_AVAILABLE_VEHICLES: ShowBuildVehicleWindow(0, vl->vehicle_type); break; |