Skip to main content

Interface IAddonEventManager

Service provider for addon event management.

Assembly: Dalamud.dll
View Source
Declaration
public interface IAddonEventManager

Methods

AddEvent(nint, nint, AddonEventType, AddonEventHandler)

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

View Source
Declaration
IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventHandler eventHandler)
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.AddonEventHandlereventHandlerThe handler to call when event is triggered.

RemoveEvent(IAddonEventHandle)

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

View Source
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.

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

ResetCursor()

Un-forces the game cursor.

View Source
Declaration
void ResetCursor()