Widget API: Frame:CreateTexture

From AddOn Studio
Jump to navigation Jump to search

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])