Thanks lucro, showing the textures fixed the problem!
I don't know if it already was documented, but the texture paths returned now also included the
.blp extension
I'm showing their parent frame MacroPopupFrame and then hiding it again. Is that a good way to go about it?
Followup edit: (June 29) http://www.wowinterface.com/forums/s...ad.php?t=53795
Code:
kids = {MacroPopupFrame:GetRegions()}
-----
MacroPopupFrame:Show() -- Legion: needs to be temporarily visible in order to get the textures
for _, child in ipairs(kids) do
if child.GetTexture then
print(child, child:GetTexture())
if child:GetTexture() == "Interface\\MacroFrame\\MacroPopup-TopLeft.blp" then
-- ...
end
end
end
MacroPopupFrame:Hide() -- hide again