WoW:API Frame CreateTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:


  FRAME.texture = FRAME:CreateTexture()
  FRAME.texture = FRAME:CreateTexture()
  texture:SetAllPoints(FRAME)
  FRAME.texture:SetAllPoints(FRAME)
  texture:SetTexture(r,g,b[,a])
  FRAME.texture:SetTexture(r,g,b[,a])

Revision as of 18:44, 29 May 2008

Widget API ← Frame < CreateTexture

Good for solid color backgrounds instead of using the SetBackdrop function.

FRAME.texture = FRAME:CreateTexture()
FRAME.texture:SetAllPoints(FRAME)
FRAME.texture:SetTexture(r,g,b[,a])