Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit 784059f8f4 - Show all commits

View file

@ -37,6 +37,7 @@ function BaseWidget:new(menuName)
self.canvas = {}
self.canvas.texture = nil
self.canvas.needRedraw = true
self.canvas.isAnimated = false
self.order = 0
self:register()
@ -74,7 +75,7 @@ function BaseWidget:register()
end
function BaseWidget:redraw()
if (self.canvas.needRedraw) then
if (self.canvas.needRedraw or self.canvas.isAnimated) then
self:generateTexture()
end
end