From a UI perspective, [[Events]] in WoW are messages sent by theWoWclientto the UIFrames(via frame scripthandlers),mostlyinreactiontothingsoccurringinthegameworld.Seethe [[#Event Index|EventAPIIndex]] linksbelow for event reference.

+

Events are a basic and important message passing system for WoW and its UI.The [[Event API]] and the WoW UI are built around these messages being recieved by [[XML/Frame|Frames]]fromWoW,through the useofevent handlers, and by expressly registering for messages for a frame.AnOnLoadeventfiresforaFrameduringload,allowingitregisterforthese event messages. The [[Events_A-Z_(Full_List)|Listofall Events]] detailsthis event API by providing a reference for each of these messages.

== Reference ==

== Reference ==

−

* [[#Event Index|Indexed Events (API)]]

+

* [[Events_A-Z_(Full_List)|List of all Events]]

−

* [[Events_A-Z_(Full_List)|List of all Events (API)]]

* [[Events/Communication|Communication Events]]

* [[Events/Communication|Communication Events]]

−

* [[Events From Disassembly|Glue Events]]

+

* [[Events From Disassembly]] including Glue Events

* [[Events that fire during the Loading Process]]

* [[Events that fire during the Loading Process]]

Line 13:

Line 13:

== Summary ==

== Summary ==

+

From a UI perspective, [[Events]] in WoW are messages sent by the WoW client to the UI Frames (via frame script handlers), mostly in reaction to things occurring in the game world.

The World of Warcraft interface is entirely event driven: all interface code is invoked in response to an event (or OnUpdate "events"). All script execution must be completed before a frame is rendered; therefore, event processing code that takes too long or contains an infinite loop will freeze the client.

The World of Warcraft interface is entirely event driven: all interface code is invoked in response to an event (or OnUpdate "events"). All script execution must be completed before a frame is rendered; therefore, event processing code that takes too long or contains an infinite loop will freeze the client.

You can register your Frame-derived widget to receive an event using the '''frame:[[API_Frame_RegisterEvent|RegisterEvent]]("eventName")''' function. When the events occur, they will be delivered to the OnEvent script handler, which can be set using '''frame:[[API_Frame_SetScript|SetScript]]("OnEvent", handlerFunc)'''. To unregister an event, use '''frame:[[API_Frame_UnregisterEvent|UnregisterEvent]]("eventName")'''.

You can register your Frame-derived widget to receive an event using the '''frame:[[API_Frame_RegisterEvent|RegisterEvent]]("eventName")''' function. When the events occur, they will be delivered to the OnEvent script handler, which can be set using '''frame:[[API_Frame_SetScript|SetScript]]("OnEvent", handlerFunc)'''. To unregister an event, use '''frame:[[API_Frame_UnregisterEvent|UnregisterEvent]]("eventName")'''.

Contents

Events are a basic and important message passing system for WoW and its UI. The Event API and the WoW UI are built around these messages being recieved by Frames from WoW, through the use of event handlers, and by expressly registering for messages for a frame. An OnLoad event fires for a Frame during load, allowing it register for these event messages. The List of all Events details this event API by providing a reference for each of these messages.

From a UI perspective, Events in WoW are messages sent by the WoW client to the UI Frames (via frame script handlers), mostly in reaction to things occurring in the game world.

The World of Warcraft interface is entirely event driven: all interface code is invoked in response to an event (or OnUpdate "events"). All script execution must be completed before a frame is rendered; therefore, event processing code that takes too long or contains an infinite loop will freeze the client.

You can register your Frame-derived widget to receive an event using the frame:RegisterEvent("eventName") function. When the events occur, they will be delivered to the OnEvent script handler, which can be set using frame:SetScript("OnEvent", handlerFunc). To unregister an event, use frame:UnregisterEvent("eventName").