Code cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user