diff options
author | smatz <smatz@openttd.org> | 2010-06-12 21:23:20 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-06-12 21:23:20 +0000 |
commit | 55a684efc1a40735fa004ac087f990b4425af636 (patch) | |
tree | bb9dc143fd933e49d583d3d89b1cc000795ff83b /src | |
parent | c4e2a49225c1b07d6a43465560d891af3cf9c887 (diff) | |
download | openttd-55a684efc1a40735fa004ac087f990b4425af636.tar.xz |
(svn r19969) -Change: swap 'list of ships' and 'list of aircraft' buttons in the Station View window
Diffstat (limited to 'src')
-rw-r--r-- | src/station_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 3fa84f159..e67f4f26d 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -828,8 +828,8 @@ static const NWidgetPart _nested_station_view_widgets[] = { SetDataTip(STR_BUTTON_RENAME, STR_STATION_VIEW_RENAME_TOOLTIP), NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, SVW_TRAINS), SetMinimalSize(14, 12), SetFill(0, 1), SetDataTip(STR_TRAIN, STR_STATION_VIEW_SCHEDULED_TRAINS_TOOLTIP), NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, SVW_ROADVEHS), SetMinimalSize(14, 12), SetFill(0, 1), SetDataTip(STR_LORRY, STR_STATION_VIEW_SCHEDULED_ROAD_VEHICLES_TOOLTIP), - NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, SVW_PLANES), SetMinimalSize(14, 12), SetFill(0, 1), SetDataTip(STR_PLANE, STR_STATION_VIEW_SCHEDULED_AIRCRAFT_TOOLTIP), NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, SVW_SHIPS), SetMinimalSize(14, 12), SetFill(0, 1), SetDataTip(STR_SHIP, STR_STATION_VIEW_SCHEDULED_SHIPS_TOOLTIP), + NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, SVW_PLANES), SetMinimalSize(14, 12), SetFill(0, 1), SetDataTip(STR_PLANE, STR_STATION_VIEW_SCHEDULED_AIRCRAFT_TOOLTIP), NWidget(WWT_RESIZEBOX, COLOUR_GREY), EndContainer(), }; @@ -939,8 +939,8 @@ struct StationViewWindow : public Window { this->SetWidgetDisabledState(SVW_RENAME, st->owner != _local_company); this->SetWidgetDisabledState(SVW_TRAINS, !(st->facilities & FACIL_TRAIN)); this->SetWidgetDisabledState(SVW_ROADVEHS, !(st->facilities & FACIL_TRUCK_STOP) && !(st->facilities & FACIL_BUS_STOP)); - this->SetWidgetDisabledState(SVW_PLANES, !(st->facilities & FACIL_AIRPORT)); this->SetWidgetDisabledState(SVW_SHIPS, !(st->facilities & FACIL_DOCK)); + this->SetWidgetDisabledState(SVW_PLANES, !(st->facilities & FACIL_AIRPORT)); this->DrawWidgets(); @@ -1185,8 +1185,8 @@ struct StationViewWindow : public Window { case SVW_TRAINS: // Show list of scheduled trains to this station case SVW_ROADVEHS: // Show list of scheduled road-vehicles to this station - case SVW_PLANES: // Show list of scheduled aircraft to this station case SVW_SHIPS: // Show list of scheduled ships to this station + case SVW_PLANES: // Show list of scheduled aircraft to this station ShowVehicleListWindow(this->owner, (VehicleType)(widget - SVW_TRAINS), (StationID)this->window_number); break; } |