View Single Post
07-26-16, 04:54 PM   #14
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Originally Posted by SDPhantom View Post
This guess is correct and it has no impact to performance as it's just creating it as a child of a different frame. If you're talking about preforming the same indexing operation repeatedly, it depends on how frequent the function runs and how often you do it in the function. Normally, since this is just at frame creation, it should be fine as-is. In this specific example though, you can use the $parent tag at frame creation to reference the name of the frame's parent.
Code:
f.Health:CreateFontString("$parentText", "OVERLAY");
Hi SDPhantom,

Thank you for your reply!

That eased my concern

BTW, what is '$parent'? It seems like it gets the name of the parent frame, but what is it called?

Last edited by Layback_ : 07-26-16 at 05:06 PM.
  Reply With Quote