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()
|
function GuiElement:destroy()
|
||||||
local gui = self:getGui()
|
local gui = self:getGui()
|
||||||
gui:removeElement(self.name)
|
gui:deleteElement(self.name)
|
||||||
if (self.screen == nil) then
|
if (self.screen ~= nil) then
|
||||||
self.screen:removeElement(self.name)
|
self.screen:deleteElement(self.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue