feat: add a function to get a menu

This commit is contained in:
Kazhnuz 2020-12-04 20:55:01 +01:00
parent bb6cf14437
commit e2d029ab0f

View file

@ -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