fix: only redraw visible elements
This commit is contained in:
parent
ac63e377f9
commit
783ca58c78
1 changed files with 4 additions and 1 deletions
|
@ -164,7 +164,10 @@ end
|
|||
-- Draw the menu and its content
|
||||
|
||||
function Gui:redraw()
|
||||
for _, element in pairs(self.elements) do
|
||||
for _, element in pairs(self:getVisibleElement(true)) do
|
||||
element:redraw()
|
||||
end
|
||||
for _, element in pairs(self:getVisibleElement(false)) do
|
||||
element:redraw()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue