Hook for when the Main Menu (or Console) is opened
2 replies, posted
Title basically - my addon causes a derma menu to stay on top of the main menu, so I want to close the derma menu when that happens. I couldn't find anything that does this. GM/PlayerBindPress doesn't get called for them, and best I can see there's no other hook.
Any advice?
FWIW this is also a minor problem in vanilla sandbox - hold Q and press ESC, and you'll see the spawn menu stays on top of the main menu until you let go of Q. My addon just doesn't have the privilege of letting go of Q.
Thanks, that's probably enough to get the job done. I actually decided to forget about it though, because it's not my addon's fault - the same issue can be experienced in vanilla Sandbox by pressing F1, clicking anywhere and then pressing Esc. And it also turns out that pressing F1 to close the menu still works when the menu is open, so it's pretty much Not My Problem™︎.
Or maybe I'll fix it if I feel like it.
Sorry, you need to Log In to post a reply to this thread.