Added a few OpenMenus, also HasMerc() (#60)

* wpList, LoadingScreen, GetSelectedCharacterName
Credits to gogigogi1

* Class offset updated

* TZ online

* IsCorpse Offset

* Added a few OpenMenus, also HasMerc()
PortraitsShown,BeltRows,QuestLog,MercInventory,NewStats
then  func  HasMerc()  return true if we have merc.
This commit is contained in:
elb
2024-12-20 03:50:33 -05:00
committed by GitHub
parent bfd86a6535
commit 444f4b0e9b
2 changed files with 45 additions and 27 deletions

View File

@@ -1,10 +1,11 @@
package data
import (
"github.com/hectorgimenez/d2go/pkg/data/mode"
"math"
"strings"
"github.com/hectorgimenez/d2go/pkg/data/mode"
"github.com/hectorgimenez/d2go/pkg/data/quest"
"github.com/hectorgimenez/d2go/pkg/data/area"
@@ -49,6 +50,7 @@ type Data struct {
IsInCharCreationScreen bool
IsInCharSelectionScreen bool
IsInLobby bool
HasMerc bool
}
type Room struct {
@@ -275,19 +277,25 @@ type PointOfInterest struct {
}
type OpenMenus struct {
Inventory bool
LoadingScreen bool
NPCInteract bool
NPCShop bool
Stash bool
Waypoint bool
MapShown bool
SkillTree bool
Character bool
QuitMenu bool
Cube bool
SkillSelect bool
Anvil bool
Inventory bool
LoadingScreen bool
NPCInteract bool
NPCShop bool
Stash bool
Waypoint bool
MapShown bool
NewSkills bool
NewStats bool
SkillTree bool
Character bool
QuitMenu bool
Cube bool
SkillSelect bool
Anvil bool
MercInventory bool
BeltRows bool
QuestLog bool
PortraitsShown bool
}
func (om OpenMenus) IsMenuOpen() bool {