Code:
<Texture name="$parentTitleBG" file="Interface\PaperDollInfoFrame\UI-GearManager-Title-Background">
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="9" y="-6"/>
</Anchor>
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
<Offset x="-6" y="-24"/>
</Anchor>
</Anchors>
</Texture>
to
lua Code:
local myFrame = CreateFrame("Frame", "SomeName")
local tex = myFrame:CreateTexture(myFrame:GetName().."TitleBG")
tex:SetTexture([[Interface\PaperDollInfoFrame\UI-GearManager-Title-Background]])
tex:SetPoint("TOPLEFT", 9, -6)
tex:SetPoint("BOTTOMRIGHT", -6, -24)
myFrame.tex = tex --no needed, but good if you want to reference without the name or local