gradient
having problems adding a gradient.
here is my code Code:
llmodel:SetAlpha(1) Code:
llmodel:SetAlpha(1) am i missing something i dont see? |
I've not used Gradients myself but I did notice there are two functions... perhaps you need to use the other one ?
http://wowprogramming.com/docs/widge...re/SetGradient •Texture:SetGradient("orientation", startR, startG, startB, endR, endG, endB) - Sets a gradient color shading for the texture http://wowprogramming.com/docs/widge...tGradientAlpha •Texture:SetGradientAlpha("orientation", startR, startG, startB, startAlpha, endR, endG, endB, endAlpha) - Sets a gradient color shading for the texture (including opacity in the gradient) Or rather, set the R,G,B values or were wanting to only gradient the alpha value ? |
Quote:
|
What do you mean when you say "it messes everything up"? Do you get any error(s)?
I'm guessing llmodel is a frame and not a texture, so you'll get "attempt to call method 'SetGradient' (a nil value)". |
Quote:
bgFile = "Interface\\AddOns\\!media\\bg", tile = true, tileSize = 46})" is the texture? or should i call the bg file as a local and do it that way? very puzzled. |
Here's a basic example
lua Code:
Looks like this (it's pinkish because of the color of the skybox): |
misread,
this is what it looks like right now Code:
llmodel:SetHeight(149) |
if i got you right you're trying to add a gradient to a texture? if so, why not create the texture like you have, then create a separate gradient texture like Ailae did and place it over the texture? wouldn't that work?
|
Quote:
what im doing is have a portrait. so its like this. background -> gradient -> portrait so you will see all 3 at once. |
So, you want to have everything faded? The background with the portrait on it, and then fade the whole thing?
|
Quote:
Quote:
whoops fixed it edit again i got it kinda.... *im sure itll hurt somes eyes. its not tiling right ]: Code:
|
- you can cut off the "mkButton" function coz u don`t use it
- SetTexture is missed - blend mode not needed coz "BLEND" is default Code:
don`t know about ur "color.r,color.g,color.b" |
Quote:
thanks again boss color.r ect are player colors :cool: trying it out now. it cuts the gradient out, and sit doesnt fix the tileset ]: |
nwm. try
llmodel.bg:SetBackdropColor(color.r,color.g,color.b,1) llmodel.bg.bg:SetGradientAlpha("VERTICAL",.26,.26,.26,.14,.26,.26,.26,.47) or llmodel.bg:SetBackdropColor(1,1,1,1) llmodel.bg.bg:SetGradientAlpha("VERTICAL",color.r,color.g,color.b,.14,color.r,color.g,color.b,.47) just advise |
Quote:
i mean, the tile is still being stretched at the bottom |
As far as I know, you can't use gradient on the backdrop so you can't use a backdrop to tile your texture if that's what you want.
You seem to do some crazy stuff though.. Here's an example of tilling a texture vertically and fading it (just used a random texture from WoW): lua Code:
Looks like this (again, the skybox): |
Quote:
64 or 32 |
All times are GMT -6. The time now is 11:01 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI