View Single Post
05-08-11, 01:39 PM   #33
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 284
My goal is identification of the texture object(s) being used for the button borders.

TotemFrame.xml does specify hierarchy for TotemFrameTotem1IconTexture for example ($parentTotem1 $parentIcon $parentTexture -- colored below), whereas the border texture appears nameless, and resides in its own nameless frame.



Code:
 
            <Frame>
                <Size x="38" y="38"/>
                <Anchors>
                    <Anchor point="CENTER">
                        <Offset x="0" y="0"/>
                    </Anchor>
                </Anchors>
                <Layers>
                    <Layer level="OVERLAY">
                        <Texture file="Interface\CharacterFrame\TotemBorder"/>
                    </Layer>
                </Layers>
                <Scripts>
                    <OnLoad>
                        self:SetFrameLevel(_G[self:GetParent():GetName().."Icon"]:GetFrameLevel() + 1);
                    </OnLoad>
                </Scripts>
            </Frame>
This is what led me to go the GetRegions() route (unsuccessfully thus far). The Lua in my previous post is one of many grasping at straws attempts at capturing the nameless texture.
  Reply With Quote