Chat Open menu + additions to IsMenuOpen() (#71)
This commit is contained in:
@@ -297,10 +297,11 @@ type OpenMenus struct {
|
|||||||
BeltRows bool
|
BeltRows bool
|
||||||
QuestLog bool
|
QuestLog bool
|
||||||
PortraitsShown bool
|
PortraitsShown bool
|
||||||
|
ChatOpen bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (om OpenMenus) IsMenuOpen() 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 {
|
func (c Corpse) StateNotInteractable() bool {
|
||||||
CorpseStates := []state.State{
|
CorpseStates := []state.State{
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ func (gd *GameReader) openMenus() data.OpenMenus {
|
|||||||
BeltRows: buffer[0x1A] != 0,
|
BeltRows: buffer[0x1A] != 0,
|
||||||
QuestLog: buffer[0xE] != 0,
|
QuestLog: buffer[0xE] != 0,
|
||||||
PortraitsShown: buffer[0x1D] != 0,
|
PortraitsShown: buffer[0x1D] != 0,
|
||||||
|
ChatOpen: buffer[0x05] != 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user