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

[FEATURE] Publicize IsInputBlocked() method (GUIManager) #413

Open
aaron01-dev opened this issue Nov 2, 2023 · 0 comments
Open

[FEATURE] Publicize IsInputBlocked() method (GUIManager) #413

aaron01-dev opened this issue Nov 2, 2023 · 0 comments

Comments

@aaron01-dev
Copy link

User Story
As a dev I want to make a condition to check for when the input is blocked so that my mod's UI (which is triggered by inputs) won't get triggered whenever something happens like typing in chat or keyboard controls from somewhere else.
but I'd have to copy the entire flag Valheim uses.
bool flag = (Chat.instance == null || !Chat.instance.HasFocus()) && !Console.IsVisible() && !TextInput.IsVisible() && !Menu.IsVisible() && !InventoryGui.IsVisible();

Envisioned Solution
Publicize IsInputBlocked()

@aaron01-dev aaron01-dev changed the title [FEATURE] [FEATURE] Publicize IsInputBlocked() method Nov 2, 2023
@aaron01-dev aaron01-dev changed the title [FEATURE] Publicize IsInputBlocked() method [FEATURE] Publicize IsInputBlocked() method (GUIManager) Nov 2, 2023
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

1 participant