View Single Post
09-17-14, 08:19 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Well that's some lazy programming, even for Blizzard... fortunately you can access all of a frame's regions and children even if they don't have names and/or keys:

Code:
local bgLeft, bgRight, bgMiddle, highlightLeft, highlightRight, highlightMiddle = GhostFrame:GetRegions()
local contentsFrame = GhostFrame:GetChildren()
local text, icon = contentsFrame:GetRegions()
They're returned in the order they're created. If the GhostFrame had any regions directly on it, they'd come after all the regions it inherits from its template.
__________________
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