Refonte pour utiliser le systeme de GUI #112
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue