-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Всем привет я новичок на форуме, но для вас я сливаю 3д меню
И вот пример меню
Код:
void DrawRect(IDirect3DDevice9* device, int baseX, int baseY, int baseW, int baseH, D3DCOLOR Cor)
{
D3DRECT BarRect = { baseX, baseY, baseX + baseW, baseY + baseH };
device->Clear(1, &BarRect, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, Cor, 0, 0);
}
Код:
void Base(
IDirect3DDevice9* device, int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(device, baseX+1, baseY+1, baseW+1, baseH+1, Linha1);
DrawRect(device, baseX, baseY-1, baseW+1 , baseH, Linha2);
DrawRect(device, baseX+1, baseY, baseW , baseH , Linha3);
}
}
Код:
void Background(IDirect3DDevice9* device , char *Texto,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(device , baseX+1, baseY+1, baseW+1, baseH+1, Linha1);
DrawRect(device, baseX, baseY-1, baseW+1 , baseH, Linha2);
DrawRect(device, baseX+1, baseY, baseW , baseH , Linha3);
}
Код:
void Button(IDirect3DDevice9* device , char *Texto,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(device , baseX+1, baseY+1, baseW+1, baseH+1, Linha1);
DrawRect(device, baseX, baseY-1, baseW+1 , baseH, Linha2);
DrawRect(device, baseX+1, baseY, baseW , baseH , Linha3);
}
Код:
void CheckBox(IDirect3DDevice9* device, char *Texto,char *Texto1,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(device , baseX+1, baseY+1, baseW+1, baseH+1, Linha1);
DrawRect(device, baseX, baseY-1, baseW+1 , baseH, Linha2);
DrawRect(device, baseX+1, baseY, baseW , baseH , Linha3);
}
И вот пример меню
Код:
struct{
int BaseX;
int BaseY;
int BaseW;
int BaseH;
} menu;
--------------------------------------------------------------------
Background(
m_pD3Ddev,"ZeroCheats",menu.BaseX,menu.BaseY,180,310,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB (20,110,110,110));
CheckBox(m_pD3Ddev,"X","",menu.BaseX +160,menu.BaseY+5,15,15,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB (20,110,110,110));
Base(m_pD3Ddev,menu.BaseX+5,menu.BaseY+30,170,270,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB (20,120,120,120));
CheckBox(m_pD3Ddev,"","Color Tool",menu.BaseX +90,menu.BaseY+40,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
CheckBox(m_pD3Ddev,"","Chams",menu.BaseX +10,menu.BaseY+40,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
Последнее редактирование: