From e2d029ab0f39dec32b65d0b4530622be095aa81a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 4 Dec 2020 20:55:01 +0100 Subject: [PATCH] feat: add a function to get a menu --- birb/modules/menusystem/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/birb/modules/menusystem/init.lua b/birb/modules/menusystem/init.lua index a742379..eb44205 100644 --- a/birb/modules/menusystem/init.lua +++ b/birb/modules/menusystem/init.lua @@ -106,6 +106,10 @@ function MenuSystem:addMenu(name, menu) self.menus[name] = menu end +function MenuSystem:getMenu(name) + return self.menus[name] +end + function MenuSystem:menuExist(name) return (self.menus[name] ~= nil) end