core/menusystem: remove base widget self-destruct action

This commit is contained in:
Kazhnuz 2019-02-14 18:33:25 +01:00
parent 0c3f4a10f0
commit fdbeffa42d

View file

@ -23,7 +23,7 @@ end
function BaseWidget:redrawCanvas() function BaseWidget:redrawCanvas()
self.width, self.height = self.menu:getWidgetSize(self.id) self.width, self.height = self.menu:getWidgetSize(self.id)
self.canvas.texture = love.graphics.newCanvas(self.width, self.height) self.canvas.texture = love.graphics.newCanvas(self.width, self.height)
love.graphics.setCanvas( self.canvas.texture ) love.graphics.setCanvas( self.canvas.texture )
@ -68,7 +68,7 @@ function BaseWidget:update(dt)
end end
function BaseWidget:action() function BaseWidget:action()
self:destroy() --self:destroy()
end end
function BaseWidget:destroy() function BaseWidget:destroy()