diff options
| author | jacob1 <jfu614@gmail.com> | 2012-10-04 03:44:59 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-05 15:32:50 (GMT) |
| commit | a9619fad333f9326d7a70ac5d06032189849dc40 (patch) | |
| tree | 8d30cc1885ad17f09d18d18e072b63a60b435742 /src/game/QuickOptions.h | |
| parent | 72b00ca5e142569d6911c1c009e3cce4d89c2627 (diff) | |
| download | powder-a9619fad333f9326d7a70ac5d06032189849dc40.zip powder-a9619fad333f9326d7a70ac5d06032189849dc40.tar.gz | |
Console Show quickoption
(best way I could think of)
Diffstat (limited to 'src/game/QuickOptions.h')
| -rw-r--r-- | src/game/QuickOptions.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game/QuickOptions.h b/src/game/QuickOptions.h index 431f5e9..5455051 100644 --- a/src/game/QuickOptions.h +++ b/src/game/QuickOptions.h @@ -99,3 +99,22 @@ public: m->SetAHeatEnable(!m->GetAHeatEnable()); } }; + +class ConsoleShowOption: public QuickOption +{ + GameController * c; +public: + ConsoleShowOption(GameModel * m, GameController * c_): + QuickOption("C", "Show Console", m, Toggle) + { + c = c_; + } + virtual bool GetToggle() + { + return 0; + } + virtual void perform() + { + c->ShowConsole(); + } +}; |
