Add HandleItemOut hook

Allows detecting when no more item is hovered and dispatch event
accordingly.
Also actually fill the HoveredItem property.
This commit is contained in:
Florian Maunier 2020-04-08 18:27:36 +02:00
parent e16b371ac3
commit a3e1e11737
No known key found for this signature in database
GPG key ID: 3919060DDEE2A555
2 changed files with 39 additions and 1 deletions

View file

@ -10,7 +10,8 @@ namespace Dalamud.Game.Internal.Gui {
public IntPtr SetGlobalBgm { get; private set; }
public IntPtr HandleItemHover { get; set; }
public IntPtr HandleItemOut { get; set; }
public GameGuiAddressResolver(IntPtr baseAddress) {
BaseAddress = baseAddress;
}
@ -27,6 +28,7 @@ namespace Dalamud.Game.Internal.Gui {
protected override void Setup64Bit(SigScanner sig) {
SetGlobalBgm = sig.ScanText("4C 8B 15 ?? ?? ?? ?? 4D 85 D2 74 58");
HandleItemHover = sig.ScanText("E8 ?? ?? ?? ?? 48 8B 5C 24 ?? 48 89 AE ?? ?? ?? ??");
HandleItemOut = sig.ScanText("48 89 5C 24 ?? 57 48 83 EC 20 48 8B FA 48 8B D9 4D");
}
}
}