![]() Local f = CreateFrame ( "Frame" ) function f : OnEvent ( event. To respond to events you create a frame with CreateFrame() and register the events to it.Įvent payload in the chat window and /etrace For example CHAT_MSG_CHANNEL fires when someone sends a message in a chat channel like General and Trade. Responding to events Main article: Handling eventsĪlmost every action in the game is an Event which tells the UI that something happened. For VS Code the Lua extension by Sumneko adds IntelliSense features like code completion.Not everything is documented so we generally look through the code from Blizzard or other addons. If you don't know what a specific API does it's best to just reference it in FrameXML. Export, clone, download or bookmark Blizzard's user interface code a.k.a.There is the /dump slash command for general debugging, /etrace for showing events and /fstack for debugging visible UI elements. ![]() Get an error reporting addon like BugSack or turn on /console scriptErrors 1.When updating addon code use /reload to test the new changes, you may want to put it on a macro hotkey as well as temporarily disabling any unnecessary addons that would increase loading time.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |