(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)
This commit is contained in:
truelight
2007-07-23 16:39:27 +00:00
parent 4c1912f881
commit ef0be0e1dc
5 changed files with 67 additions and 3 deletions

View File

@@ -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;