summaryrefslogtreecommitdiff
path: root/src/gui/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/game/GameController.cpp')
-rw-r--r--src/gui/game/GameController.cpp12
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);