Title Colour

Posts 1–6 of 6 · Page 1 of 1
Title Colour
Hello guys, I am releasing a old function of mine (It's a menu option) I had it since my first menu so time to release him very easy code, once you seen this you should be able to make rectangle colour and more!

Source:

Code:
#define GREEN			D3DCOLOR_ARGB(255, 000, 255, 000)

if(TitleColour == 1)
{
DrawStrings(ax+21,ay-15,/*Your Color*/GREEN    ,"My D3D",pFont);
}
of course, the postions will not work with your base depends witch your menu border is for the title but this is my menu so:

(Sorry you cant see the folders, i bugged the color's xD)






Credits:

Aeroman - For the current postions (Aeroman got my postions for me )
Me - For Source
You - For using it!
Nice one ..
Code:
Directx.DrawString(DrawStrings(x, y, D3DCOLOR_ARGB(alpha, red, green, blue), Directx.pFont, string);
You can change just about anything with it, dunno what's so special about the colour. You could even make it scroll like a marquee, bounce about, create a dropshadow using an extra copy with a slight offset etc.
This was a simple one i said in the thread u can make other stuff with it.
Code:
int x = y = 20;

if(TitleColor==1)
DrawText(x,y, .. colorgreen .. font);
else if(TitleColor==2)
DrawText(x,y, .. colorblue .. font);
else if(TitleColor==3)
DrawText(x,y, .. coloryellow .. font);
easy..
Quote Originally Posted by DirecTX_ View Post
Code:
int x = y = 20;

if(TitleColor==1)
DrawText(x,y, .. colorgreen .. font);
else if(TitleColor==2)
DrawText(x,y, .. colorblue .. font);
else if(TitleColor==3)
DrawText(x,y, .. coloryellow .. font);
easy..
Correct, this just what i saying im example's on the postions and stuff. Coders like you will know this stuff
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us