Kentos311 | Дата: Среда, 04.04.2018, 00:54 | Сообщение # 1 |
Сообщений: 729
Статус:
| Думаю у каждого есть идея свою пасту улучшить, в этом можете себе добавить хорошее 3D меню, думаю у вас получится довольно хорошо.
Fonts: Код 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); } } Background: Код 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); } Button: Код 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);
} CheckBox: Код 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); } Drawing: Код 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);
} В прицепи вот пример меню: Код 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)); На этом всё!
|
|
| |