Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit 2065e4ce9c - Show all commits

View file

@ -35,9 +35,9 @@ end
function GuiElement:destroy()
local gui = self:getGui()
gui:removeElement(self.name)
if (self.screen == nil) then
self.screen:removeElement(self.name)
gui:deleteElement(self.name)
if (self.screen ~= nil) then
self.screen:deleteElement(self.name)
end
end