core/menusystem: only draw cursor menu if the menu is visible
This commit is contained in:
parent
d30f28322a
commit
831531b3fa
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ function MenuSystem:draw(dt) -- On dessine les entitées
|
|||
end
|
||||
|
||||
if self.menus[self.focusedMenu] ~= nil then
|
||||
self.menus[self.focusedMenu]:drawCursor()
|
||||
if (self.menus[self.focusedMenu].isVisible) then
|
||||
self.menus[self.focusedMenu]:drawCursor()
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue