Refonte pour utiliser le systeme de GUI #112
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue