Cool Menu Design!Hi everyone! I haven't released anything in a good amount of time, so here it is! This is a cool menu design inspired by NOOB. So here it is! Globals: [PHP]int currentitem = 1;[/PHP] Base: [PHP]DrawBox(20,500,210,124,D3DCOLOR_XRGB(174,174,174), D3DCOLOR_ARGB(0,0,0,0),pDevice); //Menu Back DrawBox(20,500,210,26,D3DCOLOR_XRGB(71,65,64),D3DC OLOR_ARGB(0,0,0,0),pDevice); //Menu Header[/PHP] Items: [PHP]DrawBox(25,531,200,26,D3DCOLOR_XRGB(255,0,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 1 DrawBox(25,562,200,26,D3DCOLOR_XRGB(255,0,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 2 DrawBox(25,593,200,26,D3DCOLOR_XRGB(255,0,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 3[/PHP] Control (Up/Down): [PHP]if(GetAsyncKeyState(VK_UP)&1) { switch(currentitem) { case 1: currentitem = 3; break; case 2: currentitem = 1; break; case 3: currentitem = 2; break; } } if(GetAsyncKeyState(VK_DOWN)&1) { switch(currentitem) { case 1: currentitem = 2; break; case 2: currentitem = 3; break; case 3: currentitem = 1; break; } }[/PHP] Control (Colors): [PHP]switch(currentitem) { case 1: DrawBox(25,531,200,26,D3DCOLOR_XRGB(0,255,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 1 break; case 2: DrawBox(25,562,200,26,D3DCOLOR_XRGB(0,255,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 2 break; case 3: DrawBox(25,593,200,26,D3DCOLOR_XRGB(0,255,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 3 break; }[/PHP] I know this could be shorter, but you can do that yourself. Press thanks! Screenshot: Credits: - Me! - NOOB for the idea. - Whoever made the DrawBox function! xD
Wow this looks awesome even tho i hate you Good job i guess EDIT : Also if your not using Alpha RGB , why add it in?
Originally Posted by UnknownCoder Wow this looks awesome even tho i hate you Good job i guess EDIT : Also if your not using Alpha RGB , why add it in? Huh? |: (referring to your edit)
DrawBox(25,593,200,26,D3DCOLOR_XRGB(0,255,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 3 break; } He uses ARGB when you don't need it. It's 0,0,0,0 for all.
Originally Posted by UnknownCoder DrawBox(25,593,200,26,D3DCOLOR_XRGB(0,255,0),D3DCO LOR_ARGB(0,0,0,0),pDevice); //Item 3 break; } He uses ARGB when you don't need it. It's 0,0,0,0 for all. to make it transparent black. The D3DCOLOR_XRGB macro will define the alpha channel as 255, whereas this is defined as 0.
Originally Posted by whit Dude WTF.. you know noob was going to release his base with menu today.. But he navigates through items using keys while mine navigates tabs using keys. Mines easier. Just enter the hacks and tabs (auto size ).
Originally Posted by whit Dude WTF.. you know noob was going to release his base with menu today.. Oh really? O:
I wouldn't use this source! He might have hidden some secret logger in it, and is logging all your passwords at the moment to steal from you!