i write simple code
add this code to d3dmenu.cpp (in my base ;x)
Code:
void D3D9Menu::Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor, ID3DXFont* pFont1)
{
DrawBox(pDevice, x, y, w, h, Color);
DrawRectangle(pDevice,x, y, w, h ,s, Color2);
DrawBox(pDevice, x, y - 20, w, 18, Color);
DrawRectangle(pDevice,x, y - 20, w, 18 ,s, Color2);
DrawTextC(x + (w/2), y - 19, tekstcolor, tekst, pFont1);
}
next add this line in D3DMenu class, in d3dmenu.h file (in my base ;p)
Code:
void Box(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, int s, DWORD Color, DWORD Color2, char *tekst, DWORD tekstcolor, ID3DXFont* pFont1);
Then you can add only one line in your project, and you have box : >
Code:
if(dupa==1)
{
Dostrix->Box(pDevice, 540, 50, 170, 120, 1, tomato, WHITE, "Box by Dostrix1", WHITE, pFont);
Dostrix->Box(pDevice, 720, 50, 120, 170, 1, yellow, BLUE, "Box by Dostrix2", WHITE, pFont);
Dostrix->Box(pDevice, 850, 50, 200, 250, 1, orange, GREEN, "Box by Dostrix3", WHITE, pFont);
Dostrix->Box(pDevice, 1060, 50, 250, 200, 1, magenta, ORANGE, "Box by Dostrix4", WHITE, pFont);
}