summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-02-12 15:09:25 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-12 15:09:25 (GMT)
commit5546f7d01e87a8fcbd8ea5c9e13162ccd474d7e8 (patch)
treee9f70416adf08092eee325ca0d3f2e6bca38e936 /src/game/GameController.cpp
parentec6d1012b263049241984dfc96fae37f4280e7eb (diff)
downloadpowder-5546f7d01e87a8fcbd8ea5c9e13162ccd474d7e8.zip
powder-5546f7d01e87a8fcbd8ea5c9e13162ccd474d7e8.tar.gz
Fixed some lua methods, set decorations enabled by default, allow toggling of decorations with ctrl+b, saving and loading of render, display and colour modes for the renderer
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 7f6addd..e6baa5e 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -282,6 +282,16 @@ void GameController::SetPaused()
gameModel->SetPaused(!gameModel->GetPaused());
}
+void GameController::SetDecoration(bool decorationState)
+{
+ gameModel->SetDecoration(decorationState);
+}
+
+void GameController::SetDecoration()
+{
+ gameModel->SetDecoration(!gameModel->GetDecoration());
+}
+
void GameController::SetActiveMenu(Menu * menu)
{
gameModel->SetActiveMenu(menu);