forked from mirror/OpenTTD
(svn r127) New feature: ingame console. (sign_de)
Press tab to open the console, more info in docs/console.txt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user