summaryrefslogtreecommitdiff
path: root/src/gui/game/GameView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/game/GameView.cpp')
-rw-r--r--src/gui/game/GameView.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp
index 12414c7..a3b1fe7 100644
--- a/src/gui/game/GameView.cpp
+++ b/src/gui/game/GameView.cpp
@@ -595,6 +595,18 @@ bool GameView::GetHudEnable()
return showHud;
}
+void GameView::SetDebugHUD(bool mode)
+{
+ showDebug = mode;
+ if (ren)
+ ren->debugLines = showDebug;
+}
+
+bool GameView::GetDebugHUD()
+{
+ return showDebug;
+}
+
ui::Point GameView::GetMousePosition()
{
return mousePosition;
@@ -1201,13 +1213,6 @@ void GameView::OnMouseWheel(int x, int y, int d)
}
}
-void GameView::ToggleDebug()
-{
- showDebug = !showDebug;
- if (ren)
- ren->debugLines = showDebug;
-}
-
void GameView::BeginStampSelection()
{
selectMode = SelectStamp;