Skip to main content
Version: 15.x (API 15) [Current]

Interface IAddonEventManager

Service provider for addon event management.

Assembly: Dalamud.dll​
Declaration
public interface IAddonEventManager : IDalamudService

Methods​

AddEvent(nint, nint, AddonEventType, AddonEventDelegate)​

Registers an event handler for the specified addon, node, and type.

Declaration
IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventDelegate eventDelegate)
Returns​

Dalamud.Game.Addon.Events.IAddonEventHandle: IAddonEventHandle used to remove the event. Null if no event was added.

Parameters​
TypeNameDescription
System.IntPtratkUnitBaseThe parent addon for this event.
System.IntPtratkResNodeThe node that will trigger this event.
Dalamud.Game.Addon.Events.AddonEventTypeeventTypeThe event type for this event.
Dalamud.Plugin.Services.IAddonEventManager.AddonEventDelegateeventDelegateThe handler to call when event is triggered.

RemoveEvent(IAddonEventHandle)​

Unregisters an event handler with the specified event id and event type.

Declaration
void RemoveEvent(IAddonEventHandle eventHandle)
Parameters​
TypeNameDescription
Dalamud.Game.Addon.Events.IAddonEventHandleeventHandleUnique handle identifying this event.

SetCursor(AddonCursorType)​

Force the game cursor to be the specified cursor.

Declaration
void SetCursor(AddonCursorType cursor)
Parameters​
TypeNameDescription
Dalamud.Game.Addon.Events.AddonCursorTypecursorWhich cursor to use.

ResetCursor()​

Un-forces the game cursor.

Declaration
void ResetCursor()