diff options
author | dominik <dominik@openttd.org> | 2004-08-24 08:34:28 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-24 08:34:28 +0000 |
commit | e2f627a22ed2a38542b63ac65a73499a2d9f32aa (patch) | |
tree | 92d0709632554e6421d9d731ecdb6e8bf9bdc631 /intro_gui.c | |
parent | 7efcc84512bd2161f4c68fdbdd06b8d1519137df (diff) | |
download | openttd-e2f627a22ed2a38542b63ac65a73499a2d9f32aa.tar.xz |
(svn r127) New feature: ingame console. (sign_de)
Press tab to open the console, more info in docs/console.txt
Diffstat (limited to 'intro_gui.c')
-rw-r--r-- | intro_gui.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/intro_gui.c b/intro_gui.c index 83cb5a043..a731c4dd0 100644 --- a/intro_gui.c +++ b/intro_gui.c @@ -6,7 +6,8 @@ #include "viewport.h" #include "gfx.h" #include "player.h" -#include "command.h" +#include "command.h"
+#include "console.h" extern void MakeNewGame(); extern void StartScenario(); @@ -69,7 +70,11 @@ static void SelectGameWndProc(Window *w, WindowEvent *e) { case 12: case 13: case 14: case 15: DoCommandP(0, e->click.widget - 12, 0, NULL, CMD_SET_NEW_LANDSCAPE_TYPE); break; - } + }
+ case WE_KEYPRESS:
+ switch(e->keypress.keycode) {
+ case WKC_TAB: IConsoleSwitch(); break;
+ }
break; } } |