summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-10-04 03:01:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-05 15:32:39 (GMT)
commit72b00ca5e142569d6911c1c009e3cce4d89c2627 (patch)
tree4d4a193694958f0706e14a86b82d6f1c5596dc07 /src/game/GameModel.cpp
parente600c20ba95c072631a4320f8be3810e7a6f631d (diff)
downloadpowder-72b00ca5e142569d6911c1c009e3cce4d89c2627.zip
powder-72b00ca5e142569d6911c1c009e3cce4d89c2627.tar.gz
info tip on deco/ngrav/aheat changed
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 6f30b5e..97c7aad 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -754,6 +754,10 @@ void GameModel::SetDecoration(bool decorationState)
ren->decorations_enable = decorationState?1:0;
notifyDecorationChanged();
UpdateQuickOptions();
+ if (decorationState)
+ SetInfoTip("Decorations Layer: On");
+ else
+ SetInfoTip("Decorations Layer: Off");
}
bool GameModel::GetDecoration()
@@ -761,6 +765,21 @@ bool GameModel::GetDecoration()
return ren->decorations_enable?true:false;
}
+void GameModel::SetAHeatEnable(bool aHeat)
+{
+ sim->aheat_enable = aHeat;
+ UpdateQuickOptions();
+ if (aHeat)
+ SetInfoTip("Ambient Heat: On");
+ else
+ SetInfoTip("Ambient Heat: Off");
+}
+
+bool GameModel::GetAHeatEnable()
+{
+ return sim->aheat_enable;
+}
+
void GameModel::FrameStep(int frames)
{
sim->framerender += frames;