Code cleanup

This commit is contained in:
r00telement
2022-01-09 23:10:40 +00:00
parent 5f07ee691d
commit 4133cdc00f
4 changed files with 3 additions and 5 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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;
}
}

View File

@@ -20,7 +20,7 @@ namespace PlayerTags.GameInterface.ContextMenus
/// <summary>
/// The name of the game object.
/// </summary>
public SeString? Name { get; }
public SeString Name { get; }
/// <summary>
/// The world id of the game object.