WoW:API CreateFrame
Jump to navigation
Jump to search
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()