View Single Post
09-10-14, 01:54 PM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you really want to use XML (probably because you hate kittens, yourself, life, and the universe in general) then you should be aware that all of your OnLoad, OnEvent, etc. scripts receive the same arguments that those script receive when you define them in Lua. The first argument is always a variable named "self" that refers to the frame. So, you do not need to use your frame's global name inside the script. Just use "self" to refer to it.

But really, don't use XML. It's horrible.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote