View Single Post
04-26-11, 04:16 AM   #3
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 207
I use this


Code:
local frame = CreateFrame("Button")

--[[frame definitions here]]--

frame.leftGrad = frame:CreateTexture(nil, "BORDER")
frame.leftGrad:SetWidth(16)
frame.leftGrad:SetHeight(14)
frame.leftGrad:SetPoint("LEFT", 0, -5)
frame.leftGrad:SetTexture(1,0,0,1)
frame.leftGrad:SetGradientAlpha("Horizontal", 0, 0, 0, 0.2, 0, 0, 0, 1)

frame.rightGrad = frame:CreateTexture(nil, "BORDER")
frame.rightGrad:SetWidth(16)
frame.rightGrad:SetHeight(14)
frame.rightGrad:SetPoint("RIGHT", 0, -5)
frame.rightGrad:SetTexture(0,1,0,1)
frame.rightGrad:SetGradientAlpha("Horizontal", 0, 0, 0, 1, 0, 0, 0, 0.2)
this makes a 32x14 black gradient that starts from transparent to solid to transparent.
__________________
Chat Consolidate is the solution to any out of control trade chat. Ignore lines, throttle chat, consolidate posts!Follow the link to find out how!

▲ ▲ WoWInterface wont let me triforce >.>
  Reply With Quote