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 afad9f7d08 - Show all commits

View file

@ -41,6 +41,11 @@ function BaseWidget:new(menuName)
self.order = 0
self:register()
self.func = nil
end
function BaseWidget:setFunc(func)
self.func = func
end
function BaseWidget:getMenuByName(name)
@ -101,7 +106,9 @@ function BaseWidget:drawCanvas()
end
function BaseWidget:selectAction()
-- Do nothing
if (self.func ~= nil) then
self.func(self)
end
end
-- DRAW WIDGETS