diff options
Diffstat (limited to 'src/game/GameModel.cpp')
| -rw-r--r-- | src/game/GameModel.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp index 6f30b5e..49e031f 100644 --- a/src/game/GameModel.cpp +++ b/src/game/GameModel.cpp @@ -98,7 +98,6 @@ GameModel::GameModel(): } BuildMenus(); - BuildQuickOptionMenu(); //Set default decoration colour unsigned char colourR = min(Client::Ref().GetPrefInteger("Decoration.Red", 200), 255); @@ -173,7 +172,7 @@ void GameModel::UpdateQuickOptions() } } -void GameModel::BuildQuickOptionMenu() +void GameModel::BuildQuickOptionMenu(GameController * controller) { for(std::vector<QuickOption*>::iterator iter = quickOptions.begin(), end = quickOptions.end(); iter != end; ++iter) { @@ -186,6 +185,7 @@ void GameModel::BuildQuickOptionMenu() quickOptions.push_back(new DecorationsOption(this)); quickOptions.push_back(new NGravityOption(this)); quickOptions.push_back(new AHeatOption(this)); + quickOptions.push_back(new ConsoleShowOption(this, controller)); notifyQuickOptionsChanged(); UpdateQuickOptions(); @@ -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; |
