Quantcast
WoWInterface - View Single Post - Can you name a frame AFTER it's been created?
View Single Post
08-16-19, 07:37 PM   #2
kurapica.igas
A Flamescale Wyrmkin
Join Date: Aug 2011
Posts: 128
No, you can't, there is no SetName method. But normally there is no need to give a frame name unless it's a secure one.

If you need access it in _G, just use _G[name] = frame, it's not a good practice, since you always can save it in your own addon.

Or you can create a parent-child system that the child's name is saved in its parent so you can access any frames in a root frame like `root.Form.Label:SetText(xx)`, it's the name of your own system, so you can change them to whatever you want.
  Reply With Quote