WoW:API CreateFrame

Revision as of 21:45, 29 March 2006 by WoWWiki>Blissfulpain
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

local f = CreateFrame("Frame",nil,UIParent)

f:SetFrameStrata("BACKGROUND")

f:SetWidth(128) -- Set These to whatever height/width is needed

f:SetHeight(64) -- for your Texture

local t = f:CreateTexture(nil,"BACKGROUND")

t:SetTexture("Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Factions.blp") -- Set this to your texture file's location

t:SetAllPoints(f)

f.texture = t



f:SetPoint("CENTER",0,0) --This sticks the texture smack dab in the middle of the screen.

f:Show()