mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
close #31 window ref deletion
This commit is contained in:
parent
fec58c231d
commit
eb1ceeb390
@ -59,11 +59,6 @@ function love.load()
|
||||
print(c.horizontal, c.vertical)
|
||||
|
||||
local window = pop.window():align("center", "center"):setTitle("Welcome! This title is far too big!")
|
||||
--window:addChild(pop.text("Welcome to Pop.Box()!"))
|
||||
--window.window.clicked = function()
|
||||
-- print("The proper window has been clicked!")
|
||||
-- return true
|
||||
--end
|
||||
|
||||
pop.window():setClose(false):setClose(true)
|
||||
|
||||
|
@ -243,6 +243,7 @@ do
|
||||
end
|
||||
self.parent:removeChild(self)
|
||||
self = nil
|
||||
return nil
|
||||
end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
|
@ -214,6 +214,13 @@ do
|
||||
else
|
||||
return false
|
||||
end
|
||||
end,
|
||||
delete = function(self)
|
||||
_class_0.__parent.__base.delete(self)
|
||||
self.head = nil
|
||||
self.title = nil
|
||||
self.area = nil
|
||||
self.close = nil
|
||||
end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
|
@ -243,6 +243,7 @@ do
|
||||
end
|
||||
self.parent:removeChild(self)
|
||||
self = nil
|
||||
return nil
|
||||
end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
|
@ -214,6 +214,13 @@ do
|
||||
else
|
||||
return false
|
||||
end
|
||||
end,
|
||||
delete = function(self)
|
||||
_class_0.__parent.__base.delete(self)
|
||||
self.head = nil
|
||||
self.title = nil
|
||||
self.area = nil
|
||||
self.close = nil
|
||||
end
|
||||
}
|
||||
_base_0.__index = _base_0
|
||||
|
@ -262,3 +262,4 @@ class element
|
||||
|
||||
@parent\removeChild @
|
||||
@ = nil
|
||||
return nil
|
||||
|
@ -288,3 +288,11 @@ class window extends element
|
||||
return true
|
||||
else
|
||||
return false
|
||||
|
||||
delete: =>
|
||||
super!
|
||||
@head = nil
|
||||
@title = nil
|
||||
@area = nil
|
||||
@close = nil
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user