WildStar:UI Event: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:


== Startup ==
== Startup ==
During start-up the OnLoad event fires for an AddOn during load, allowing it register for further event and timer messages.
During start-up the 'OnLoad' event fires for an AddOn during load, allowing it register for further event and timer messages.


== Registration ==
== Registration ==

Latest revision as of 17:40, 10 August 2023

Were you looking for the list of API events?

This is the main WS event reference. Events are a basic message passing system which are received by event handlers as Lua table and function. Many require registration in Lua.

Startup[edit]

During start-up the 'OnLoad' event fires for an AddOn during load, allowing it register for further event and timer messages.

Registration[edit]

You can register any other table and function to receive an event using the Apollo.RegisterEventHandler(sEventName, sFuncName, tHandler) function. When the events occur they will be delivered to that script handler.

Removal[edit]

To unregister an event handler, use Apollo.RemoveEventHandler(sEventName, tHandler).

Performance[edit]

The WildStar interface is nearly entirely event driven, and all interface code is invoked in response to an event. Script execution must be completed before a frame is rendered; therefore, event processing code that takes too long or contains an infinite loop can drastically degrade the client visibly.

See also[edit]