feat(textmenu): add line sizing
This commit is contained in:
parent
12ef4728a8
commit
afad9f7d08
1 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,11 @@ function BaseWidget:new(menuName)
|
||||||
|
|
||||||
self.order = 0
|
self.order = 0
|
||||||
self:register()
|
self:register()
|
||||||
|
self.func = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
function BaseWidget:setFunc(func)
|
||||||
|
self.func = func
|
||||||
end
|
end
|
||||||
|
|
||||||
function BaseWidget:getMenuByName(name)
|
function BaseWidget:getMenuByName(name)
|
||||||
|
@ -101,7 +106,9 @@ function BaseWidget:drawCanvas()
|
||||||
end
|
end
|
||||||
|
|
||||||
function BaseWidget:selectAction()
|
function BaseWidget:selectAction()
|
||||||
-- Do nothing
|
if (self.func ~= nil) then
|
||||||
|
self.func(self)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- DRAW WIDGETS
|
-- DRAW WIDGETS
|
||||||
|
|
Loading…
Reference in a new issue