This commit is contained in:
qfx 2020-02-23 03:31:53 +02:00
parent ec2394bb8b
commit ed3a695c51
2 changed files with 2 additions and 1 deletions

View File

@ -334,6 +334,7 @@ local insert = table.insert
---@param x number
---@param y number
function element:draw(x, y)
self.settings.remove =false
if not self.view.lock then
if x then self.view.x = x end
if y then self.view.y = y end

View File

@ -45,7 +45,7 @@ function helium.update(dt)
if remove then
helium.utils.ArrayRemove(helium.elementBuffer, function(t, i)
--returns false or (true if nil)
return (not t[i].settings.remove)
return (t[i].settings.remove)
end)
end