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

PreventExitingMenu not working #10

Closed
n00el opened this issue Apr 9, 2019 · 1 comment
Closed

PreventExitingMenu not working #10

n00el opened this issue Apr 9, 2019 · 1 comment

Comments

@n00el
Copy link

n00el commented Apr 9, 2019

Okay, I have one menu, with only one item, and I have this code:

MenuController.MenuAlignment = MenuController.MenuAlignmentOption.Right;
MenuController.PreventExitingMenu = true;

The aligment is working, I can set it to the left/to the right, but the PreventExitingMenu not doing anything. I can still exit the menu with the esc button, the backspace etc..

@TomGrobbe
Copy link
Owner

prevent exiting menu is actually incorrectly named, but can't be changed due to backwards compatibility. All it does is prevent opening the pause menu when pressing ESC or P while the menu is open. Use the DisableBackButtons property to disable the ESC/backspace buttons.

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

No branches or pull requests

2 participants