You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leonardo Emanuele edited this page Aug 5, 2023
·
2 revisions
MenuPool
MenuPool is only use in releases before The Gary release v4
In The Gary v4 the MenuPool is no longer required and was removed, menus can now be made visible when you require them, please refer to the latest examples.
MenuPool is the main container.. everything you do is inside this.
Each menu and pause menu is contained here, it handles the menu processes and can handle the menus.
Let's see the main functions of this container!
First of all it must be instantiated in every script you have one or more menus.
so at the beginning of your script you'll write:
C#:
publicMenuPoolMenuPool=newMenuPool();
Lua:
MenuPool=MenuPool.New()
MenuPool can be used for these functions:
C#:
Add(UIMenumenu)
Add(TabViewpauseMenu)
AddSubMenu(UIMenumenu,stringtext)
AddSubMenu(UIMenumenu,stringtext,PointFoffset)
AddSubMenu(UIMenumenu,stringtext,stringdescription)// the most used as usually all submenus inherit the parentMenu properties.
AddSubMenu(UIMenumenu,stringtext,stringdescription,PointFoffset)
ProcessMenus()
CloseAllMenus()
bool IsAnyMenuOpen
boolIsAnyPauseMenuOpen