summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-10 18:16:08 +0000
committertron <tron@openttd.org>2004-12-10 18:16:08 +0000
commit13e8d01dcbc3c7573de1667d5c392d3640197890 (patch)
tree66a06b77592865f6aa9640d6c1ddd3648d89f2d3 /main_gui.c
parent804d6828dd4f8948e121adecf698b13c43a206b5 (diff)
downloadopenttd-13e8d01dcbc3c7573de1667d5c392d3640197890.tar.xz
(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.
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c16
1 files changed, 8 insertions, 8 deletions
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;