modules/menusystem: add a way to easily invalidate widget canvas

This commit is contained in:
Kazhnuz 2019-04-13 10:44:07 +02:00
parent ae5a001e00
commit a6b1f2da59

View file

@ -66,6 +66,10 @@ function BaseWidget:redrawCanvas()
imageData:release( )
end
function BaseWidget:invalidateCanvas()
self.canvas.needRedraw = true
end
function BaseWidget:drawCanvas()
self.r = love.math.random(128)/256
self.g = love.math.random(128)/256