From 13e8d01dcbc3c7573de1667d5c392d3640197890 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 10 Dec 2004 18:16:08 +0000 Subject: (svn r1009) -Feature: per-station vehicle lists This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables. --- main_gui.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 80567b2ed..918b3c6a0 100644 --- a/main_gui.c +++ b/main_gui.c @@ -292,22 +292,22 @@ static void MenuClickIndustry(int index) static void MenuClickShowTrains(int index) { - ShowPlayerTrains(index); + ShowPlayerTrains(index, -1); } static void MenuClickShowRoad(int index) { - ShowPlayerRoadVehicles(index); + ShowPlayerRoadVehicles(index, -1); } static void MenuClickShowShips(int index) { - ShowPlayerShips(index); + ShowPlayerShips(index, -1); } static void MenuClickShowAir(int index) { - ShowPlayerAircraft(index); + ShowPlayerAircraft(index, -1); } static void MenuClickBuildRail(int index) @@ -1819,10 +1819,10 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) case WKC_F10:ShowOperatingProfitGraph(); break; case WKC_F11: ShowCompanyLeagueTable(); break; case WKC_F12: ShowBuildIndustryWindow(); break; - case WKC_SHIFT | WKC_F1: ShowPlayerTrains(local); break; - case WKC_SHIFT | WKC_F2: ShowPlayerRoadVehicles(local); break; - case WKC_SHIFT | WKC_F3: ShowPlayerShips(local); break; - case WKC_SHIFT | WKC_F4: ShowPlayerAircraft(local); break; + case WKC_SHIFT | WKC_F1: ShowPlayerTrains(local, -1); break; + case WKC_SHIFT | WKC_F2: ShowPlayerRoadVehicles(local, -1); break; + case WKC_SHIFT | WKC_F3: ShowPlayerShips(local, -1); break; + case WKC_SHIFT | WKC_F4: ShowPlayerAircraft(local, -1); break; case WKC_SHIFT | WKC_F5: ToolbarZoomInClick(w); break; case WKC_SHIFT | WKC_F6: ToolbarZoomOutClick(w); break; case WKC_SHIFT | WKC_F7: ShowBuildRailToolbar(_last_built_railtype,-1); break; -- cgit v1.2.3-54-g00ecf