Class ContextMenuOpenedArgs
Provides data for ContextMenuOpenedDelegate methods.
Inheritance
Inherited Members
Namespace: Dalamud.Game.Gui.ContextMenus
Assembly: Dalamud.dll
Syntax
public sealed class ContextMenuOpenedArgs
Constructors
| Improve this Doc View SourceContextMenuOpenedArgs(AddonContextMenu*, AgentContextInterface*, String, IEnumerable<ContextMenuItem>)
Initializes a new instance of the ContextMenuOpenedArgs class.
Declaration
public ContextMenuOpenedArgs(AddonContextMenu*addon, AgentContextInterface*agent, string parentAddonName, IEnumerable<ContextMenuItem> items)
Parameters
| Type | Name | Description |
|---|---|---|
| AddonContextMenu* | addon | The addon associated with the context menu. |
| AgentContextInterface* | agent | The agent associated with the context menu. |
| System.String | parentAddonName | The the name of the parent addon associated with the context menu. |
| System.Collections.Generic.IEnumerable<ContextMenuItem> | items | The items in the context menu. |
Properties
| Improve this Doc View SourceAddon
Gets the addon associated with the context menu.
Declaration
public AddonContextMenu*Addon { get; }
Property Value
| Type | Description |
|---|---|
| AddonContextMenu* |
Agent
Gets the agent associated with the context menu.
Declaration
public AgentContextInterface*Agent { get; }
Property Value
| Type | Description |
|---|---|
| AgentContextInterface* |
GameObjectContext
Gets the game object context associated with the context menu.
Declaration
public GameObjectContext GameObjectContext { get; set; }
Property Value
| Type | Description |
|---|---|
| GameObjectContext |
InventoryItemContext
Gets the item context associated with the context menu.
Declaration
public InventoryItemContext InventoryItemContext { get; set; }
Property Value
| Type | Description |
|---|---|
| InventoryItemContext |
Items
Gets the items in the context menu.
Declaration
public List<ContextMenuItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<ContextMenuItem> |
ParentAddonName
Gets the name of the parent addon associated with the context menu.
Declaration
public string ParentAddonName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Title
Gets the title of the context menu.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceAddCustomItem(SeString, CustomContextMenuItemSelectedDelegate)
Append a custom context menu item to this context menu.
Declaration
public void AddCustomItem(SeString name, CustomContextMenuItemSelectedDelegate selected)
Parameters
| Type | Name | Description |
|---|---|---|
| SeString | name | The name of the item. |
| CustomContextMenuItemSelectedDelegate | selected | The action to be executed once selected. |
AddCustomSubMenu(SeString, ContextMenuOpenedDelegate)
Append a custom submenu to this context menu. Note that these cannot be nested, and will be ignored if they are.
Declaration
public void AddCustomSubMenu(SeString name, ContextMenuOpenedDelegate opened)
Parameters
| Type | Name | Description |
|---|---|---|
| SeString | name | The name of the submenu. |
| ContextMenuOpenedDelegate | opened | The action to be executed once opened. |