From d3c44dbffacdd8488390b5b21503be7e83f18f75 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 10 Jan 2016 22:48:45 -0500 Subject: [PATCH] fix deco color being reset to 0x00000000 when loading a lua element --- src/gui/game/GameModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/game/GameModel.cpp b/src/gui/game/GameModel.cpp index 4e1e03b58..402a4e16c 100644 --- a/src/gui/game/GameModel.cpp +++ b/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");