diff options
| author | jacob1 <jfu614@gmail.com> | 2013-05-30 00:35:46 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-05-30 00:35:46 (GMT) |
| commit | cbc80de6522b5562f9490b0cdb620371f25be2f9 (patch) | |
| tree | 3a041d9e3632e9f0eb7b85a3f958d6fe9343c187 /src/gui/game/GameController.cpp | |
| parent | d29b001d82547e3c2f2e5ef4cf30b84ce59934b7 (diff) | |
| download | powder-cbc80de6522b5562f9490b0cdb620371f25be2f9.zip powder-cbc80de6522b5562f9490b0cdb620371f25be2f9.tar.gz | |
some new sim and ren lua api functions
Diffstat (limited to 'src/gui/game/GameController.cpp')
| -rw-r--r-- | src/gui/game/GameController.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index d8ff3c6..f4992b2 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -661,7 +661,7 @@ bool GameController::KeyPress(int key, Uint16 character, bool shift, bool ctrl, SwitchGravity(); break; case 'd': - gameView->ToggleDebug(); + gameView->SetDebugHUD(!gameView->GetDebugHUD()); break; case 's': gameView->BeginStampSelection(); @@ -932,6 +932,16 @@ bool GameController::GetHudEnable() return gameView->GetHudEnable(); } +void GameController::SetDebugHUD(bool hudState) +{ + gameView->SetDebugHUD(hudState); +} + +bool GameController::GetDebugHUD() +{ + return gameView->GetDebugHUD(); +} + void GameController::SetActiveColourPreset(int preset) { gameModel->SetActiveColourPreset(preset); |
