If you open DebugMenu then escape and then keep selecting it multiple copies of it will be placed on the ScreenStack. To prevent this ScreenStack should contain the Lua table that contains the menu to determine if the menu is already on the stack or not.
If you open DebugMenu then escape and then keep selecting it multiple copies of it will be placed on the ScreenStack. To prevent this ScreenStack should contain the Lua table that contains the menu to determine if the menu is already on the stack or not.