Thread: gradient
View Single Post
05-24-10, 07:13 AM   #11
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
Originally Posted by mankeluvsit View Post
because the texture im using is tiled.

what im doing is have a portrait.
so its like this.

background -> gradient -> portrait
so you will see all 3 at once.
Originally Posted by Ailae View Post
So, you want to have everything faded? The background with the portrait on it, and then fade the whole thing?

whoops fixed it

edit again

i got it kinda....
*im sure itll hurt somes eyes.

its not tiling right ]:

Code:
mkButton = function (myframe,offset,nobg)
local offset = offset or 3
if nobg ~= true then
myframe.bg = myframe:CreateTexture(nil,"OVERLAY")

end
return myframe
end
	
	llmodel:SetAlpha(1)
	llmodel:SetPoint("TOPLEFT",4,-4)
	llmodel:SetPoint("BOTTOMRIGHT",-4,4)
	llmodel:SetFrameLevel(3)

	llmodel.bg = CreateFrame("Frame",nil,llmodel)
	llmodel.bg:SetAllPoints(llmodel)
	llmodel.bg = mkButton(llmodel.bg,0)
	llmodel.bg.bg:SetGradientAlpha("VERTICAL",.26,.26,.26,.14,color.r,color.g,color.b,.47)

	llmodel.bg.bg:SetBlendMode("BLEND")
	llmodel.bg:SetBackdrop{
	bgFile = iambg, tile = true, tileSize = 46,}
	llmodel.bg:SetAlpha(1)
	llmodel.bg:SetFrameLevel(3)

Last edited by mankeluvsit : 05-24-10 at 07:45 AM.
  Reply With Quote