View Single Post
05-18-16, 04:21 PM   #4
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
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

Last edited by Ketho : 07-05-16 at 03:40 AM.