add function to check if there is an open menu (#33)

Co-authored-by: Héctor Giménez <hector.fwbz@gmail.com>
This commit is contained in:
Arto Simonyan
2024-08-16 19:23:30 +03:00
committed by GitHub
parent a356597630
commit 5a01fd3214
3 changed files with 7 additions and 3 deletions

View File

@@ -303,3 +303,7 @@ type OpenMenus struct {
SkillSelect bool
Anvil bool
}
func (om OpenMenus) IsMenuOpen() bool {
return om.Inventory || om.NPCInteract || om.NPCShop || om.Stash || om.Waypoint || om.SkillTree || om.Character || om.QuitMenu || om.Cube || om.SkillSelect || om.Anvil
}