core/menusystem: only draw cursor menu if the menu is visible

This commit is contained in:
Kazhnuz 2019-02-15 18:32:27 +01:00
parent d30f28322a
commit 831531b3fa

View file

@ -84,8 +84,10 @@ function MenuSystem:draw(dt) -- On dessine les entitées
end
if self.menus[self.focusedMenu] ~= nil then
if (self.menus[self.focusedMenu].isVisible) then
self.menus[self.focusedMenu]:drawCursor()
end
end
end