core/menusystem: remove base widget self-destruct action
This commit is contained in:
parent
0c3f4a10f0
commit
fdbeffa42d
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue