MoreHotkeys

From TTWiki
Revision as of 23:51, 18 August 2006 by dmccoy (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Enable hot keys for all tools in the rail and road construction menus and for general actions

More Hotkeys

Enable hot keys for all tools in the rail and road construction menus and for general actions

-=Switch=-

Configuration file: morehotkeys

Command line: -YH

-=Description=-

Normally, hotkeys only work for the four railway track types, and the two orientations of roads.  With this option, everything in all four construction menus can be activated by hotkeys.

In addition, you get hotkeys for all display options, such as transparent building and station and town signs.

For the road and rail construction menus, keys 1 to 4 choose the track or road orientation as usual. The keys from 5 to the end of the top row of keys activate the other tools, and the key to the left of 1 (usually ` or ~)  toggles the bulldozer on or off.

For the other two toolbars, the same general pattern applies, but some buttons have two hotkeys.

When numbers appear both above and below a button in this image, either key may be used. This image assumes the default American hotkey list. Most notably, if the backslash is not the key you use to toggle the purchase-land tool in the other two toolbars, don't use it here either.

In addition, the standard hotkeys can be used on the road construction toolbar in the scenario editor, and most buttons in the Land Generation toobar get hotkeys.

For lack of anything more obvious, the num-pad was used to assign these shortcuts. In addition, [5] may also be used to toggle the dynamite tool. Again, the default American hotkey list is assumed.

When both this toolbar and the road toolbar are open, the road toolbar captures all keypresses.

For the display options, t toggles transparency, and Shift-1 (!) to  Shift-5 (usually %) to toggle the other display options.

Note that you can modify the hotkey list using the `ttdpttxt' mechanism, for more information see Custom in-game texts.

Note that the DOS versions of TTD have hardcoded keyboard mappings (which can be a  little strange sometimes), while Windows versions follow the Windows keyboard layout.   This may make it difficult to determine the key code to use for a certain key.  To help with that, you can use the `ttdpttxt'  mechanism to turn on the display of key codes to make your own hotkey list.

Or, you can use the enhanced keyboard mapping feature (see Enhanced Keyboard Mapping)  to remap all keys in the DOS versions the way you like it....

This patch was contributed by Oskar Eisemuth, and the extension to the scenario editor and to the air and water toolbars was added  by Dale ))McCoy[[]]McCoy[[.