Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:Event API
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 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. 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")'''. [[Category:Event API| ]] [[Category:API events| Events]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Close
Loading editor…