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
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




).