Permalink
Browse files

fix deco color being reset to 0x00000000 when loading a lua element

  • Loading branch information...
jacob1 committed Jan 11, 2016
1 parent 7073c1b commit d3c44dbffacdd8488390b5b21503be7e83f18f75
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/game/GameModel.cpp
@@ -320,6 +320,7 @@ void GameModel::BuildMenus()
menuList[SC_DECO]->AddTool(new DecorationTool(ren, DECO_SMUDGE, "SMDG", "Smudge tool, blends surrounding deco together.", 0, 0, 0, "DEFAULT_DECOR_SMDG"));
menuList[SC_DECO]->AddTool(new DecorationTool(ren, DECO_CLEAR, "CLR", "Erase any set decoration.", 0, 0, 0, "DEFAULT_DECOR_CLR"));
menuList[SC_DECO]->AddTool(new DecorationTool(ren, DECO_DRAW, "SET", "Draw decoration (No blending).", 0, 0, 0, "DEFAULT_DECOR_SET"));
SetColourSelectorColour(colour); // update tool colors
decoToolset[0] = GetToolFromIdentifier("DEFAULT_DECOR_SET");
decoToolset[1] = GetToolFromIdentifier("DEFAULT_DECOR_CLR");
decoToolset[2] = GetToolFromIdentifier("DEFAULT_UI_SAMPLE");

0 comments on commit d3c44db

Please sign in to comment.