Chat Open menu + additions to IsMenuOpen() (#71)

This commit is contained in:
elb
2025-01-19 11:32:31 -05:00
committed by GitHub
parent 8bce23b039
commit 415ac29ab1
2 changed files with 3 additions and 1 deletions

View File

@@ -297,10 +297,11 @@ type OpenMenus struct {
BeltRows bool
QuestLog bool
PortraitsShown bool
ChatOpen 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
return om.Inventory || om.NPCInteract || om.NPCShop || om.Stash || om.Waypoint || om.SkillTree || om.Character || om.QuitMenu || om.Cube || om.SkillSelect || om.Anvil || om.ChatOpen || om.QuestLog || om.BeltRows || om.MercInventory
}
func (c Corpse) StateNotInteractable() bool {
CorpseStates := []state.State{

View File

@@ -110,6 +110,7 @@ func (gd *GameReader) openMenus() data.OpenMenus {
BeltRows: buffer[0x1A] != 0,
QuestLog: buffer[0xE] != 0,
PortraitsShown: buffer[0x1D] != 0,
ChatOpen: buffer[0x05] != 0,
}
}