Widget API: Frame:CreateTexture

From AddOn Studio
Revision as of 09:47, 29 February 2008 by WoWWiki>Amro
Jump to navigation Jump to search

Widget API ← Frame < CreateTexture

Frame:CreateTexture

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

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