mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +01:00
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:
parent
e16b371ac3
commit
a3e1e11737
2 changed files with 39 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue