Make more Lua tool properties trigger a menu rebuild

Turns out GameView needs to be told about every single thing, oops.
This commit is contained in:
Tamás Bálint Misius
2024-10-05 09:21:03 +02:00
parent 9c3cd69cef
commit 5928125594

View File

@@ -336,10 +336,10 @@ static int property(lua_State *L)
}
return false;
};
if (handleProperty(&SimTool::Name , "Name" , false) ||
handleProperty(&SimTool::Description, "Description", false) ||
handleProperty(&SimTool::Colour , "Colour" , false) ||
handleProperty(&SimTool::Colour , "Color" , false) ||
if (handleProperty(&SimTool::Name , "Name" , true) ||
handleProperty(&SimTool::Description, "Description", true) ||
handleProperty(&SimTool::Colour , "Colour" , true) ||
handleProperty(&SimTool::Colour , "Color" , true) ||
handleProperty(&SimTool::MenuSection, "MenuSection", true) ||
handleProperty(&SimTool::MenuVisible, "MenuVisible", true))
{