WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Graphics Help (https://www.wowinterface.com/forums/forumdisplay.php?f=14)
-   -   Color Textures (https://www.wowinterface.com/forums/showthread.php?t=43337)

cokedrivers 04-25-12 02:02 PM

Color Textures
 
Hello,
What I would basicly like to do is take the default blizzard frames with the greyish color and be able to change the color.

Would i have to recreate all the textures or can i just do a overlay?
Would a simple MainMenuBar:SetColor(0,0,0) work?

I came across this when i used the Blizzard dialog border on one of my Panels and did Datatpanel:SetBackdropBorderColor(0,0,0) it made the Dialog border black which made me thing it would be kinda cool to beable to set all the "Grey" borders to what ever color a user wanted, maybe class color, maybe bright yellow who know's.

So if anyone could help me out that would be great.

Thanks
Coke

Phanx 04-25-12 03:39 PM

You don't need to modify the textures or create any additional frames/textures/etc. There are already API methods built into frames and textures for changing their colors

For frames whose visible textures are set as part of their backdrop, you can use:

Code:

frameObject:SetBackdropColor(r, g, b, a)
frameObject:SetBackdropBorderColor(r, g, b, a)

For actual texture objects (like the main menu bar art), you can use:

Code:

textureObject:SetVertexColor(r, g, b, a)
Note that if the texture is already colored (eg. not grayscale) then applying a vertex color may not have the exact results you expect. For example, if a texture is yellow, and you apply a blue vertex color, it will end up looking green.

Unkn 04-25-12 04:17 PM

You might want to try going a step simpler and using Facepaint.

Phanx -the all knowing - yes that should be above the new-ish avatar :) - method will work if you want to code it out yourself. I speak from personal experience here, its alot of fun to trial and error your UI so I would totally suggest doing that.

cokedrivers 04-25-12 08:56 PM

Quote:

Originally Posted by Unkn (Post 255856)
You might want to try going a step simpler and using Facepaint.

Phanx -the all knowing - yes that should be above the new-ish avatar :) - method will work if you want to code it out yourself. I speak from personal experience here, its alot of fun to trial and error your UI so I would totally suggest doing that.

Thank You I think FacePaint is the way I'm going to go.

Unkn 04-26-12 05:53 PM

Glad it will work for you!


All times are GMT -6. The time now is 07:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI