Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple menu toggle keys #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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