Enum AddonEvent
Enumeration for available AddonLifecycle events.
Assembly: Dalamud.dll
public enum AddonEvent
Fields
PreSetup
An event that is fired prior to an addon being setup with its implementation of
FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase.OnSetup(System.UInt32%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkValue*). This event is useful for modifying the initial data contained within
Dalamud.Game.Addon.Lifecycle.AddonArgTypes.AddonSetupArgs.AtkValueSpan prior to the addon being created.
PreSetup = 0
PostSetup
An event that is fired after an addon has finished its initial setup. This event is particularly useful for developers seeking to add custom elements to now-initialized and populated node lists, as well as reading data placed in the AtkValues by the game during the setup process. See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreSetup for more information.
PostSetup = 1
PreUpdate
An event that is fired before an addon begins its update cycle via FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase.Update(System.Single). This event
is fired every frame that an addon is loaded, regardless of visibility.
PreUpdate = 2
PostUpdate
An event that is fired after an addon has finished its update. See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreUpdate for more information.
PostUpdate = 3
PreDraw
An event that is fired before an addon begins drawing to screen via FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase.Draw. Unlike
Dalamud.Game.Addon.Lifecycle.AddonEvent.PreUpdate, this event is only fired if an addon is visible or otherwise drawing to screen.
PreDraw = 4
PostDraw
An event that is fired after an addon has finished its draw to screen. See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreDraw for more information.
PostDraw = 5
PreFinalize
An event that is fired immediately before an addon is finalized via FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase.Finalizer and
destroyed. After this event, the addon will destruct its UI node data as well as free any allocated memory.
This event can be used for cleanup and tracking tasks.
PreFinalize = 6
PreRequestedUpdate
An event that is fired before a call to FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase.OnRequestedUpdate(FFXIVClientStructs.FFXIV.Component.GUI.NumberArrayData**%2cFFXIVClientStructs.FFXIV.Component.GUI.StringArrayData**) is made in response to a
change in the subscribed Dalamud.Game.Addon.Lifecycle.AddonArgTypes.AddonRequestedUpdateArgs.NumberArrayData or
Dalamud.Game.Addon.Lifecycle.AddonArgTypes.AddonRequestedUpdateArgs.StringArrayData backing this addon. This generally occurs in response to
receiving data from the game server, but can happen in other cases as well. This event is useful for modifying
the data received before it's passed to the UI for display. Contrast to Dalamud.Game.Addon.Lifecycle.AddonEvent.PreRefresh which tends to
be in response to <em>client-driven</em> interactions.
PreRequestedUpdate = 7
PostRequestedUpdate
An event that is fired after an addon has finished processing an ArrayData update.
See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreRequestedUpdate for more information.
PostRequestedUpdate = 8
PreRefresh
An event that is fired before an addon calls its FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitManager.RefreshAddon(FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase*%2cSystem.UInt32%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkValue*) method. Refreshes are
generally triggered in response to certain user interactions such as changing tabs, and are primarily used to
update the AtkValues present in this addon. Contrast to Dalamud.Game.Addon.Lifecycle.AddonEvent.PreRequestedUpdate which is called
in response to ArrayData updates.
PreRefresh = 9
PostRefresh
An event that is fired after an addon has finished its refresh. See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreRefresh for more information.
PostRefresh = 10
PreReceiveEvent
An event that is fired before an addon begins processing a user-driven event via
FFXIVClientStructs.FFXIV.Component.GUI.AtkEventListener.ReceiveEvent(FFXIVClientStructs.FFXIV.Component.GUI.AtkEventType%2cSystem.Int32%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkEvent*%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkEventData*), such as mousing over an element or clicking a button. This event
is only valid for addons that actually override the ReceiveEvent method of the underlying
AtkEventListener.
PreReceiveEvent = 11
PostReceiveEvent
An event that is fired after an addon finishes calling its FFXIVClientStructs.FFXIV.Component.GUI.AtkEventListener.ReceiveEvent(FFXIVClientStructs.FFXIV.Component.GUI.AtkEventType%2cSystem.Int32%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkEvent*%2cFFXIVClientStructs.FFXIV.Component.GUI.AtkEventData*) method.
See Dalamud.Game.Addon.Lifecycle.AddonEvent.PreReceiveEvent for more information.
PostReceiveEvent = 12
PreOpen
An event that is fired before an addon processes its open method.
PreOpen = 13
PostOpen
An event that is fired after an addon has processed its open method.
PostOpen = 14
PreClose
An even that is fired before an addon processes its Close method.
PreClose = 15
PostClose
An event that is fired after an addon has processed its Close method.
PostClose = 16
PreShow
An event that is fired before an addon processes its Show method.
PreShow = 17
PostShow
An event that is fired after an addon has processed its Show method.
PostShow = 18
PreHide
An event that is fired before an addon processes its Hide method.
PreHide = 19
PostHide
An event that is fired after an addon has processed its Hide method.
PostHide = 20
PreMove
An event that is fired before an addon processes its OnMove method. OnMove is triggered only when a move is completed.
PreMove = 21
PostMove
An event that is fired after an addon has processed its OnMove method. OnMove is triggered only when a move is completed.
PostMove = 22
PreMouseOver
An event that is fired before an addon processes its MouseOver method.
PreMouseOver = 23
PostMouseOver
An event that is fired after an addon has processed its MouseOver method.
PostMouseOver = 24
PreMouseOut
An event that is fired before an addon processes its MouseOut method.
PreMouseOut = 25
PostMouseOut
An event that is fired after an addon has processed its MouseOut method.
PostMouseOut = 26
PreFocus
An event that is fired before an addon processes its Focus method.
PreFocus = 27
PostFocus
An event that is fired after an addon has processed its Focus method.
PostFocus = 28
Extension Methods
- System.Enum.Dalamud.Utility.EnumExtensions.GetAttribute``1
- System.Enum.Dalamud.Utility.EnumExtensions.GetAttributes``1
- Dalamud.Utility.EnumExtensions.IsObsolete(System.Enum)