Skip to content

Conversation

0xLuca
Copy link

@0xLuca 0xLuca commented Aug 15, 2021

I added the MenuToggleKey property to the Menu class. The script no longer checks if the one main menu opening key is pressed, but iterates through all registered menus and checks if their key is pressed to show and hide them. This adds the feature that you can use this api more than once without the need to add your own key press listener and without having the issue that wrong menus are being opened.

Warning to the vMenu author
You would have to set the Menu's toggle key, and remove the assignment of the static MenuController.MenuToggleKey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant