Skip to main content

Interface IMenuArgs

Interface representing a context menus args.

Assembly: Dalamud.dll
View Source
Declaration
public interface IMenuArgs

Properties

EventInterfaces

Gets a list of AtkEventInterface pointers associated with the context menu. Only available with Dalamud.Game.Gui.ContextMenu.ContextMenuType.Default. Almost always an agent pointer. You can use this to find out what type of context menu it is.

View Source
Declaration
IReadOnlySet<nint> EventInterfaces { get; }

AddonName

Gets the name of the addon that opened the context menu.

View Source
Declaration
string? AddonName { get; }

AddonPtr

Gets the memory pointer of the addon that opened the context menu.

View Source
Declaration
nint AddonPtr { get; }

AgentPtr

Gets the memory pointer of the agent that opened the context menu.

View Source
Declaration
nint AgentPtr { get; }

Gets the type of the context menu.

View Source
Declaration
ContextMenuType MenuType { get; }

Target

Gets the target info of the context menu. The actual type depends on Dalamud.Game.Gui.ContextMenu.IMenuArgs.MenuType. Dalamud.Game.Gui.ContextMenu.ContextMenuType.Default signifies a Dalamud.Game.Gui.ContextMenu.MenuTargetDefault. Dalamud.Game.Gui.ContextMenu.ContextMenuType.Inventory signifies a Dalamud.Game.Gui.ContextMenu.MenuTargetInventory.

View Source
Declaration
MenuTarget Target { get; }