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/GameView.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/GameView.cpp')
| -rw-r--r-- | src/gui/game/GameView.cpp | 19 |
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; |
