diff options
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 69beb75..6b4a953 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -441,6 +441,11 @@ void GameView::NotifyToolListChanged(GameModel * sender) currentX -= 31; tempButton->SetActionCallback(new ToolAction(this, toolList[i])); + VideoBuffer * tempTexture = toolList[i]->GetTexture(30, 18); + tempButton->Appearance.SetTexture(tempTexture); + if(tempTexture) + delete tempTexture; + tempButton->Appearance.BackgroundInactive = ui::Colour(toolList[i]->colRed, toolList[i]->colGreen, toolList[i]->colBlue); if(sender->GetActiveTool(0) == toolList[i]) |
