diff options
author | truelight <truelight@openttd.org> | 2007-07-23 16:39:27 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-07-23 16:39:27 +0000 |
commit | ef0be0e1dc205b5991f6896c86d921bc1934aecb (patch) | |
tree | 007552a6d702fafa5e7c7b5de2f213240dba7bb5 /src/main_gui.cpp | |
parent | 4c1912f8810936024c87f2e6077745a00ed99a91 (diff) | |
download | openttd-ef0be0e1dc205b5991f6896c86d921bc1934aecb.tar.xz |
(svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
-Add: added 'M' as new shortcut for smallmap (bilbo)
-Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo)
-Add: added support for other keycodes to be possible used in the future (bilbo)
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 92be8bf6d..bbf930f2a 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -1649,7 +1649,13 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) case WKC_SHIFT | WKC_F2: ShowVehicleListWindow(_local_player, VEH_ROAD); break; case WKC_SHIFT | WKC_F3: ShowVehicleListWindow(_local_player, VEH_SHIP); break; case WKC_SHIFT | WKC_F4: ShowVehicleListWindow(_local_player, VEH_AIRCRAFT); break; + case WKC_NUM_PLUS: /* Fall through */ + case WKC_EQUALS: /* Fall through */ + case WKC_SHIFT | WKC_EQUALS: /* Fall through */ case WKC_SHIFT | WKC_F5: ToolbarZoomInClick(w); break; + case WKC_NUM_MINUS: /* Fall through */ + case WKC_MINUS: /* Fall through */ + case WKC_SHIFT | WKC_MINUS: /* Fall through */ case WKC_SHIFT | WKC_F6: ToolbarZoomOutClick(w); break; case WKC_SHIFT | WKC_F7: if (CanBuildVehicleInfrastructure(VEH_TRAIN)) ShowBuildRailToolbar(_last_built_railtype, -1); break; case WKC_SHIFT | WKC_F8: ShowBuildRoadToolbar(_last_built_roadtype); break; @@ -1662,6 +1668,8 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) case WKC_CTRL | WKC_ALT | 'C': if (!_networking) ShowCheatWindow(); break; case 'A': if (CanBuildVehicleInfrastructure(VEH_TRAIN)) ShowBuildRailToolbar(_last_built_railtype, 4); break; /* Invoke Autorail */ case 'L': ShowTerraformToolbar(); break; + case 'M': ShowSmallMap(); break; + case 'V': ShowExtraViewPortWindow(); break; default: return; } e->we.keypress.cont = false; |