diff --git a/XivCommon/Functions/ContextMenu.cs b/XivCommon/Functions/ContextMenu.cs index 459a21e..a5929a0 100755 --- a/XivCommon/Functions/ContextMenu.cs +++ b/XivCommon/Functions/ContextMenu.cs @@ -6,7 +6,6 @@ using System.Text; using Dalamud; using Dalamud.Game; using Dalamud.Hooking; -using Dalamud.Plugin; using FFXIVClientStructs.FFXIV.Component.GUI; using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.ValueType; @@ -236,7 +235,7 @@ namespace XivCommon.Functions { // set up the agent to take the appropriate action for this item *(menuActions + 7 + i) = item switch { - NativeContextMenuItem => item.InternalAction, + NativeContextMenuItem nativeItem => nativeItem.InternalAction, _ => NoopContextId, }; @@ -311,11 +310,6 @@ namespace XivCommon.Functions { /// A base context menu item /// public abstract class BaseContextMenuItem { - /// - /// The action code to be used in the context menu agent for this item. - /// - public byte InternalAction { get; internal set; } - /// /// If this item should be enabled in the menu. /// @@ -326,6 +320,11 @@ namespace XivCommon.Functions { /// A native context menu item /// public sealed class NativeContextMenuItem : BaseContextMenuItem { + /// + /// The action code to be used in the context menu agent for this item. + /// + public byte InternalAction { get; } + /// /// The name of the context item. ///