diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-08 02:05:58 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-08 02:05:58 (GMT) |
| commit | 158b05402348f6eae3ed08f40676c1b8adf0b268 (patch) | |
| tree | 2810c368e25d27ccf5e086935073ba501332e938 /src/game/GameController.cpp | |
| parent | 986173af4c1aec6308ea6f6f2e126b65eeaf37a3 (diff) | |
| download | powder-158b05402348f6eae3ed08f40676c1b8adf0b268.zip powder-158b05402348f6eae3ed08f40676c1b8adf0b268.tar.gz | |
fix tpt.selectedl/r/a, but it returns the string identifier now instead of an id
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 373388d..2ec2cfc 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -146,6 +146,11 @@ GameController::GameController(): commandInterface = new LuaScriptInterface(this, gameModel);//new TPTScriptInterface(); ((LuaScriptInterface*)commandInterface)->SetWindow(gameView); + + commandInterface->OnBrushChanged(gameModel->GetBrushID(), gameModel->GetBrush()->GetRadius().X, gameModel->GetBrush()->GetRadius().X); + commandInterface->OnActiveToolChanged(0, gameModel->GetActiveTool(0)); + commandInterface->OnActiveToolChanged(1, gameModel->GetActiveTool(1)); + commandInterface->OnActiveToolChanged(2, gameModel->GetActiveTool(2)); //sim = new Simulation(); Client::Ref().AddListener(this); @@ -917,6 +922,7 @@ void GameController::SetActiveMenu(Menu * menu) void GameController::SetActiveTool(int toolSelection, Tool * tool) { + commandInterface->OnActiveToolChanged(toolSelection, tool); gameModel->SetActiveTool(toolSelection, tool); gameModel->GetRenderer()->gravityZonesEnabled = false; gameModel->SetLastTool(tool); |
