feat: add a function to get a menu
This commit is contained in:
parent
bb6cf14437
commit
e2d029ab0f
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ function MenuSystem:addMenu(name, menu)
|
||||||
self.menus[name] = menu
|
self.menus[name] = menu
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function MenuSystem:getMenu(name)
|
||||||
|
return self.menus[name]
|
||||||
|
end
|
||||||
|
|
||||||
function MenuSystem:menuExist(name)
|
function MenuSystem:menuExist(name)
|
||||||
return (self.menus[name] ~= nil)
|
return (self.menus[name] ~= nil)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue