Troca no Menu.h pela parte do DrawBox:
Code:
void DrawBox( LPDIRECT3DDEVICE9 pDevice, INT x, INT y, INT h, INT w, D3DCOLOR Border, D3DCOLOR yourcolor )
{
DrawRect(pDevice, x, y, h, 1, Border);
DrawRect(pDevice, x + w, y, h, 1, Border);
DrawRect(pDevice, x, y, 1, w, Border);
DrawRect(pDevice, x, y + h, 1, w + 1, Border);
DrawRect(pDevice, x + 2, y + 2, h - 4, 2, Border);
DrawRect(pDevice, x + 2, y + 2, 2, w - 4, Border);
DrawRect(pDevice, x + w - 4, y + 2, h - 4, 2, Border);
DrawRect(pDevice, x + 2, y + h - 4, 2, w - 4, Border);
const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
struct Vertex
{
float x,y,z,ht;
DWORD yourcolor;
}
V[4] =
{
{(float)x,(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)x,(float)y, 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)(y+h), 0.0f, 0.0f, yourcolor},
{(float)(x+w),(float)y, 0.0f, 0.0f, yourcolor}
};
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
pDevice->SetRenderState( D3DRS_FOGENABLE, false );
pDevice->SetFVF(D3D_FVF);
pDevice->SetTexture(0, NULL);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
}
Depois troca as cores ARGB pra essas:
Code:
#define Red D3DCOLOR_ARGB(100, 255, 000, 000)
#define Green D3DCOLOR_ARGB(100, 127, 255, 000)
#define Orange D3DCOLOR_ARGB(100, 000, 255, 255)
#define Blue D3DCOLOR_ARGB(100, 000, 255, 255)
#define Yellow D3DCOLOR_ARGB(100, 255, 255, 51)
#define Black D3DCOLOR_ARGB(100, 000, 000, 000)
#define Grey D3DCOLOR_ARGB(100, 112, 112, 112)
#define Gold D3DCOLOR_ARGB(100, 255, 215, 000)
#define Pink D3DCOLOR_ARGB(100, 255, 192, 203)
#define Purple D3DCOLOR_ARGB(100, 128, 000, 128)
#define White D3DCOLOR_ARGB(100, 255, 255, 255)
#define Cyan D3DCOLOR_ARGB(100, 000, 255, 255)
#define Magenta D3DCOLOR_ARGB(100, 255, 000, 255)