Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-16-11, 12:15 AM   #19
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
Thanks Seerah. It appears the aforementioned frames are childless. Printing GetChildren() against them doesn't return anything, and doing so against their parents doesn't return anything that /framestack didn't already reveal.

What's more confusing to me, is that in running the below code, I expected *all* UI textures to be affected:
Code:
local abc = function()
    for i, v in pairs(_G) do
        if type(v) == "table" then
            local meta = getmetatable(v)
                if meta
		and meta.__index
		and type(meta.__index) == "table"
		and meta.__index.GetTexture
		and v:GetObjectType() == "Texture"
		then		
                    v:SetDesaturated(1)
		    v:SetVertexColor(1, 0, 0)
                end
        end
    end
end
But this hodgepodge is what results (some textures left completely untouched, some desaturated but not recolored ):
Click image for larger version

Name:	WoWScrnShot_041611_000353.jpg
Views:	340
Size:	1.01 MB
ID:	6002 Click image for larger version

Name:	WoWScrnShot_041611_012004.jpg
Views:	338
Size:	1.08 MB
ID:	6003

My total inexperience with global tables aside for a sec , it feels like there is a methodology to solving this that I'm totally missing.

Last edited by Aprikot : 04-16-11 at 01:44 AM. Reason: added pic
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » FrameXML $parent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off