bugfixes + tweaks for editor 2.0

This commit is contained in:
kepler155c@gmail.com
2020-04-02 21:28:42 -06:00
parent fc1a308193
commit d88ef00652
9 changed files with 47 additions and 23 deletions

View File

@@ -40,9 +40,10 @@ function UI.DropMenu:layout()
end
function UI.DropMenu:enable()
local menuBar = self.parent:find(self.menuUid)
for _,c in pairs(self.children) do
if not c.spacer then
c.inactive = not self:getActive(c)
if not c.spacer and menuBar then
c.inactive = not menuBar:getActive(c)
end
end