Cool. So to access MiniMapTrackingButtonBorder in Lua without using the fully qualified texture name, would it look like this (using Ailae's example):
lua Code:
local a = CreateFrame("Button", "$parentButton", MiniMapTracking)
local b = a:CreateTexture("$parentBorder", "BORDER")
(MiniMapTracking frame in FrameXML\Minimap.xml for reference):
xml Code:
<Frame name="MiniMapTracking">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="9" y="-45"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" urgency="5" file="Interface\Minimap\UI-Minimap-Background">
<Size x="25" y="25"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-4"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="0.6"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentIcon" urgency="5" file="Interface\Minimap\Tracking\None">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="6" y="-6"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentIconOverlay" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIcon"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIcon"/>
</Anchors>
<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true">
<Scripts>
<OnLoad function="MiniMapTrackingDropDown_OnLoad"/>
</Scripts>
</Frame>
<Button name="$parentButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture name="$parentBorder" urgency="5" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size x="54" y="54"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentShine" urgency="5" file="Interface\ComboFrame\ComboPoint" alphaMode="ADD" hidden="true">
<Size x="27" y="27"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-2"/>
</Anchor>
</Anchors>
<TexCoords left="0.5625" right="1" top="0" bottom="1"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>gisterEvent("MINIMAP_UPDATE_TRACKING");MiniMapTracking_Update();</OnLoad>
<OnEvent function="MiniMapTracking_Update"/>
<OnClick>ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, "MiniMapTracking", 0, -5);PlaySound("igMainMenuOptionCheckBoxOn");</OnClick>
<OnMouseDown>TrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 8, -8);TrackingIconOverlay:Show();</OnMouseDown>
<OnMouseUp>TrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 6, -6);TrackingIconOverlay:Hide();</OnMouseUp>
<OnEnter>ltip:SetOwner(self, "ANCHOR_LEFT");ltip:SetText(TRACKING, 1, 1, 1);ltip:AddLine(MINIMAP_TRACKING_TOOLTIP_NONE, nil, nil, nil, 1);ltip:Show();</OnEnter>
<OnLeave>ltip:Hide();</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
</Frames>
</Frame>