diff --git a/PlayerTags/GameInterface/ContextMenus/ContextMenu.cs b/PlayerTags/GameInterface/ContextMenus/ContextMenu.cs index 0240136..e410c56 100644 --- a/PlayerTags/GameInterface/ContextMenus/ContextMenu.cs +++ b/PlayerTags/GameInterface/ContextMenus/ContextMenu.cs @@ -2,7 +2,6 @@ using Dalamud.Game.Text.SeStringHandling; using Dalamud.Hooking; using Dalamud.Logging; -using FFXIVClientStructs.FFXIV.Client.System.Memory; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Client.UI.Agent; using FFXIVClientStructs.FFXIV.Component.GUI; @@ -365,7 +364,7 @@ namespace PlayerTags.GameInterface.ContextMenus { return false; } - + // The important things to make this work are: // 1. Temporary allocate a sub context menu title // 1. Temporarily increase the atk value count by 1 so the game knows to expect at least 1 context menu item diff --git a/PlayerTags/GameInterface/ContextMenus/ContextMenuReaderWriter.cs b/PlayerTags/GameInterface/ContextMenus/ContextMenuReaderWriter.cs index 2ac32a5..9872e63 100644 --- a/PlayerTags/GameInterface/ContextMenus/ContextMenuReaderWriter.cs +++ b/PlayerTags/GameInterface/ContextMenus/ContextMenuReaderWriter.cs @@ -1,6 +1,5 @@ using Dalamud.Game.Text.SeStringHandling; using Dalamud.Logging; -using FFXIVClientStructs.FFXIV.Client.System.Memory; using FFXIVClientStructs.FFXIV.Client.UI.Agent; using FFXIVClientStructs.FFXIV.Component.GUI; using System; diff --git a/PlayerTags/GameInterface/ContextMenus/FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentInventoryContext.cs b/PlayerTags/GameInterface/ContextMenus/FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentInventoryContext.cs index e57581c..e928124 100644 --- a/PlayerTags/GameInterface/ContextMenus/FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentInventoryContext.cs +++ b/PlayerTags/GameInterface/ContextMenus/FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentInventoryContext.cs @@ -15,7 +15,7 @@ namespace FFXIVClientStructs.FFXIV.Client.UI.Agent [FieldOffset(0x604)] public bool IsHighQuality; [FieldOffset(0x670)] public unsafe byte SelectedIndex; [FieldOffset(0x690)] public byte* Unk1; - [FieldOffset(/*0xD08*/0x690 + 0x678)] public byte* SubContextMenuTitle; + [FieldOffset(0xD08)] public byte* SubContextMenuTitle; [FieldOffset(0x1740)] public bool IsSubContextMenu; } } diff --git a/PlayerTags/GameInterface/ContextMenus/GameObjectContext.cs b/PlayerTags/GameInterface/ContextMenus/GameObjectContext.cs index da8fa0f..3b8916b 100644 --- a/PlayerTags/GameInterface/ContextMenus/GameObjectContext.cs +++ b/PlayerTags/GameInterface/ContextMenus/GameObjectContext.cs @@ -20,7 +20,7 @@ namespace PlayerTags.GameInterface.ContextMenus /// /// The name of the game object. /// - public SeString? Name { get; } + public SeString Name { get; } /// /// The world id of the game object.