Post: Shader Menu Color
02-26-2011, 07:54 AM #1
emsp
Space Ninja
(adsbygoogle = window.adsbygoogle || []).push({}); Copy And Past for se7snins

Credits to Labeled at S7 For Posting it

Source You must login or register to view this content.





Alright as most of you know, menu shaders make your menu look nice and sexy. In this tut imma teach you about menu shaders and how to customize the color of it.This is very basic, and is very useful when making your cute menu. Happy

Alright, fist we have shader thread.
    
MenuShad = NewClientHudElem( self );
MenuShad.alignX = "center";
MenuShad.alignY = "center";
MenuShad.horzAlign = "center";
MenuShad.vertAlign = "center";
MenuShad.foreground = false;
MenuShad.alpha = 0.6;
MenuShad.color = ( 0, 0, 0)
MenuShad setshader("black", 900, 800);


Next go ahead and find this code.
    
MenuShad.color = ( 0, 0, 0)


The numbers might not all be 0.

Now You see how it says 0, 0, 0 ? Well those all represent colors. Like this.
    
MenuShad.color = ( Red, Green, Blue)



Now as you learned it kinder garden, if you mix to primary colors, you get a secondary color. Same works on MW2. So if you mix red and blue you get?....... PURPLE, good job. So here is a list of color functions.
    
MenuShad.color = ( 1, 0, 0)//red
MenuShad.color = ( 0, 1, 0)//green
MenuShad.color = ( 0, 0, 1)//blue
MenuShad.color = ( 1, 0, 1)//purple
MenuShad.color = ( 1, 1, 0)//yellow
MenuShad.color = ( 0, 1, 1)//cyan



Now you see where it says This code?
    
MenuShad setshader("black", 900, 800);


Well, this creates the shader origin color and dimensions. Well you can either put black or white in the quotes.

Now if it says black then if yours says black, then you want to make it black, you can remove the color function. But if you have this code in your list, it controls the transparency.
    
MenuShad.Alpha = 0.6;


This controls the transparency and makes it so you can see through it. When you make the variable lower, the more opacity you add. So that makes it more see through, and also this affects the color. The lower it is, less brightness it has. Thus making it darker.

There is another way to add color. With this code.
    
MenuShad.color = ((0/255),(0/255),(0/255))
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to emsp for this useful post:

_L@ND!NRoCk_, Mrs.Drake, Neff

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo