Thread: gradient
View Single Post
05-24-10, 06:09 AM   #6
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
Here's a basic example

lua Code:
  1. local frame = CreateFrame("Frame", nil, UIParent)
  2. frame:SetHeight(200)
  3. frame:SetWidth(400)
  4. frame:SetPoint("CENTER")
  5.  
  6. -- Instead of using a backdrop, you create a texture as the background
  7. frame.bg = frame:CreateTexture(nil, "BACKGROUND")
  8. frame.bg:SetAllPoints(frame)
  9. frame.bg:SetTexture("Interface/Tooltips/UI-Tooltip-Background")
  10. frame.bg:SetGradientAlpha("VERTICAL", 0, 0, 0, 0, 0, 0, 0, .6)

Looks like this (it's pinkish because of the color of the skybox):

__________________
Oh, the simulated horror!
  Reply With Quote