You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
aaron01-dev
changed the title
[FEATURE]
[FEATURE] Publicize IsInputBlocked() method
Nov 2, 2023
aaron01-dev
changed the title
[FEATURE] Publicize IsInputBlocked() method
[FEATURE] Publicize IsInputBlocked() method (GUIManager)
Nov 2, 2023
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()
The text was updated successfully, but these errors were encountered: