View Single Post
08-11-14, 01:52 PM   #38
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Your variable renaming the Spawn callback will not work; there is no variable "element" defined in that scope. The third value passed to CreateFrame needs to be a reference to (or the global name of) the desired parent frame. You're effectively passing nil, causing the created frame to have no parent. You want that frame to parented to the unit frame, so the previous "frame" was appropriate there, since in that scope, the variable "frame" points to the unit frame.
__________________
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