feat(textmenu): add line sizing

This commit is contained in:
Kazhnuz 2021-08-28 11:16:11 +02:00
parent 12ef4728a8
commit afad9f7d08

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