View Single Post
10-30-10, 10:01 PM   #2
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 207
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:
  1. local myFrame = CreateFrame("Frame", "SomeName")
  2. local tex = myFrame:CreateTexture(myFrame:GetName().."TitleBG")
  3. tex:SetTexture([[Interface\PaperDollInfoFrame\UI-GearManager-Title-Background]])
  4. tex:SetPoint("TOPLEFT", 9, -6)
  5. tex:SetPoint("BOTTOMRIGHT", -6, -24)
  6. myFrame.tex = tex --no needed, but good if you want to reference without the name or local
__________________
Chat Consolidate is the solution to any out of control trade chat. Ignore lines, throttle chat, consolidate posts!Follow the link to find out how!

▲ ▲ WoWInterface wont let me triforce >.>
  Reply With Quote