15 #include "town.h" |
15 #include "town.h" |
16 #include "command.h" |
16 #include "command.h" |
17 #include "variables.h" |
17 #include "variables.h" |
18 #include "vehicle_gui.h" |
18 #include "vehicle_gui.h" |
19 #include "date.h" |
19 #include "date.h" |
|
20 #include "vehicle.h" |
20 |
21 |
21 typedef int CDECL StationSortListingTypeFunction(const void*, const void*); |
22 typedef int CDECL StationSortListingTypeFunction(const void*, const void*); |
22 |
23 |
23 static StationSortListingTypeFunction StationNameSorter; |
24 static StationSortListingTypeFunction StationNameSorter; |
24 static StationSortListingTypeFunction StationTypeSorter; |
25 static StationSortListingTypeFunction StationTypeSorter; |
677 ShowQueryString(STR_STATION, STR_3030_RENAME_STATION_LOADING, 31, 180, w->window_class, w->window_number, CS_ALPHANUMERAL); |
678 ShowQueryString(STR_STATION, STR_3030_RENAME_STATION_LOADING, 31, 180, w->window_class, w->window_number, CS_ALPHANUMERAL); |
678 } break; |
679 } break; |
679 |
680 |
680 case 10: { /* Show a list of scheduled trains to this station */ |
681 case 10: { /* Show a list of scheduled trains to this station */ |
681 const Station *st = GetStation(w->window_number); |
682 const Station *st = GetStation(w->window_number); |
682 ShowPlayerTrains(st->owner, w->window_number); |
683 ShowVehicleListWindow(st->owner, w->window_number, VEH_Train); |
683 break; |
684 break; |
684 } |
685 } |
685 |
686 |
686 case 11: { /* Show a list of scheduled road-vehicles to this station */ |
687 case 11: { /* Show a list of scheduled road-vehicles to this station */ |
687 const Station *st = GetStation(w->window_number); |
688 const Station *st = GetStation(w->window_number); |
688 ShowPlayerRoadVehicles(st->owner, w->window_number); |
689 ShowVehicleListWindow(st->owner, w->window_number, VEH_Road); |
689 break; |
690 break; |
690 } |
691 } |
691 |
692 |
692 case 12: { /* Show a list of scheduled aircraft to this station */ |
693 case 12: { /* Show a list of scheduled aircraft to this station */ |
693 const Station *st = GetStation(w->window_number); |
694 const Station *st = GetStation(w->window_number); |
694 /* Since oilrigs have no owners, show the scheduled aircraft of current player */ |
695 /* Since oilrigs have no owners, show the scheduled aircraft of current player */ |
695 PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; |
696 PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; |
696 ShowPlayerAircraft(owner, w->window_number); |
697 ShowVehicleListWindow(owner, w->window_number, VEH_Aircraft); |
697 break; |
698 break; |
698 } |
699 } |
699 |
700 |
700 case 13: { /* Show a list of scheduled ships to this station */ |
701 case 13: { /* Show a list of scheduled ships to this station */ |
701 const Station *st = GetStation(w->window_number); |
702 const Station *st = GetStation(w->window_number); |
702 /* Since oilrigs/bouys have no owners, show the scheduled ships of current player */ |
703 /* Since oilrigs/bouys have no owners, show the scheduled ships of current player */ |
703 PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; |
704 PlayerID owner = (st->owner == OWNER_NONE) ? _current_player : st->owner; |
704 ShowPlayerShips(owner, w->window_number); |
705 ShowVehicleListWindow(owner, w->window_number, VEH_Ship); |
705 break; |
706 break; |
706 } |
707 } |
707 } |
708 } |
708 break; |
709 break; |
709 |
710 |