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

Fix for keybindings firing while inside menus. #10

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

Conversation

Vazumongr
Copy link

Keybindings fire while inside menus. Add a check for whether the UI is using input, in which case we don't want to fire these keybindings. This includes chat, pause menu, inventory menu in the Psykhanium, etc.

The ducks got lost when opening the file locally. Leaving the re-adding up to you rather than linking two commits for you to look over.

@ronvoluted
Copy link
Owner

Cheers, have been meaning to get around to this.

@Vazumongr
Copy link
Author

Hey, had a typo when I pushed that to git last night (downside to working on this stuff at 2am heh). Line 64 should be using a colon instead of a dot.
or (ui_manager.using_input()) <-- Typo
or (ui_manager:using_input()) <-- Correct

I just caught this typo about 5 minutes ago. Sorry bout that! Everything else should be fine! I'm gonna update my fork here in a a minute.

@Vazumongr
Copy link
Author

Alright I updated my fork and it seems to have also updated this PR. Didn't know it would do that, cool stuff.

@ronvoluted
Copy link
Owner

ronvoluted commented Oct 18, 2023

No worries at all. I'll be merging your commits so you get credit for your help in git history, but will be doing a commit pass on top of this too to check everything and add some related refactors.

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.

2 participants