fix deco color being reset to 0x00000000 when loading a lua element
This commit is contained in:
parent
7073c1bf9c
commit
d3c44dbffa
@ -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_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_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"));
|
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[0] = GetToolFromIdentifier("DEFAULT_DECOR_SET");
|
||||||
decoToolset[1] = GetToolFromIdentifier("DEFAULT_DECOR_CLR");
|
decoToolset[1] = GetToolFromIdentifier("DEFAULT_DECOR_CLR");
|
||||||
decoToolset[2] = GetToolFromIdentifier("DEFAULT_UI_SAMPLE");
|
decoToolset[2] = GetToolFromIdentifier("DEFAULT_UI_SAMPLE");
|
||||||
|
Loading…
Reference in New Issue
Block a user