49
edits
m (Bear moved page WildStar://UI Event to WildStar:UI Event without leaving a redirect) |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{\|uievent}} | ||
:''Were you looking for the list of [[ | :''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. | 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. | ||
| Line 8: | Line 8: | ||
== Registration == | == Registration == | ||
You can register any other table and function to receive an event using the {{ | You can register any other table and function to receive an event using the {{\|api||Apollo|RegisterEventHandler}}(sEventName, sFuncName, tHandler) function. When the events occur they will be delivered to that script handler. | ||
== Removal == | == Removal == | ||
To unregister an event handler, use {{ | To unregister an event handler, use {{\|api||Apollo|RemoveEventHandler}}(sEventName, tHandler). | ||
== Performance == | == Performance == | ||
| Line 17: | Line 17: | ||
== See also == | == See also == | ||
* [[ | * [[\Handling events]] - setting up event handling for an AddOn | ||
* [[ | * [[\Registering events]] - how to create new events for use by AddOns | ||
* [[ | * [[\Parsing event messages]] - extracting information from event's parameters | ||
* [[ | * [[\UI AddOn]] | ||