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
|
-- Draw the menu and its content
|
||||||
|
|
||||||
function Gui:redraw()
|
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()
|
element:redraw()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue