View Single Post
12-05-15, 12:15 AM   #9
Furchee
A Murloc Raider
 
Furchee's Avatar
Join Date: Dec 2015
Posts: 5
Originally Posted by SDPhantom View Post
The XML file isn't needed since it doesn't create its own frame to run the Lua code. It simply hooks into the original frame that responds to the event and runs itself after that frame is done with its own code. This is what LootFrame:HookScript() is doing. The only thing needed is to reference the Lua file directly from your ToC instead of going through the XML file.

For future reference, you should avoid using XML as it's exceedingly difficult to debug. If something is wrong with your syntax, the entire file fails to load with no notice. There are very few examples where XML is necessary. You can do almost everything using pure Lua.
Thanks for the clarification on that. I will apply what you've said.
Glad to be learning more about this!
  Reply With Quote