Originally Posted by Ailae
Couldn't you create a function that creates the frame and then call on that function every time you create such a frame?
|
Yes, we call that a frame factory or a factory function. You can see an example of its usage with my sStats addon. The core sStats addon has the factory function, while the display modules use it to create their frames.
However, iirc, if you want to create secure frames/buttons you need to use XML.