unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2009, 04:46 AM
Alkatraz Alkatraz is offline
Administrator
 
Join Date: Jan 2007
Posts: 72
Default [Coding] Menu 3d

Credits to kidebr



my full code to creating menu 3D sexy lol

You need mod to print text , im use mod print text for source code thx for
FlameGod ->http://www.uc-forum.com/forum/showthread.php?t=38129

is easy copy and past and add menus sexy in yours hacks

//starts here
Code:
void DrawRect(IDirect3DDevice9* Unidade, int baseX, int baseY, int baseW, int baseH, D3DCOLOR Cor)
{
D3DRECT BarRect = { baseX, baseY, baseX + baseW, baseY + baseH };
Unidade->Clear(1, &BarRect, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, Cor, 0,  0);
}
//front
Code:
void SteamBase(IDirect3DDevice9* Unidade, int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(Unidade, baseX+1, baseY+1, baseW+1, baseH+1, Linha1);

DrawRect(Unidade, baseX, baseY-1, baseW+1 , baseH, Linha2);

DrawRect(Unidade, baseX+1, baseY, baseW , baseH , Linha3);
}
//back
Code:
void SteamFundo(IDirect3DDevice9* Unidade, char *Texto,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(Unidade, baseX+1, baseY+1, baseW+1, baseH+1, Linha1);

DrawRect(Unidade, baseX, baseY-1, baseW+1 , baseH, Linha2);

DrawRect(Unidade, baseX+1, baseY, baseW , baseH , Linha3);

//PrintText(m_font1,baseX + baseW - 170, baseY+1,  210, 210,210,210, Texto);
}
//button
Code:
void SteamBotao(IDirect3DDevice9* Unidade,  char *Texto,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(Unidade, baseX+1, baseY+1, baseW+1, baseH+1, Linha1);

DrawRect(Unidade, baseX, baseY-1, baseW+1 , baseH, Linha2);

DrawRect(Unidade, baseX+1, baseY, baseW , baseH , Linha3);

//PrintText(m_font1,baseX + baseW - 65, baseY+4,  210, 210,210,210, Texto);
}
//checkbox
Code:
void SteamCheckBox(IDirect3DDevice9* Unidade,  char *Texto,char *Texto1,int baseX, int baseY, int baseW, int baseH, D3DCOLOR Linha2, D3DCOLOR Linha1, D3DCOLOR Linha3)
{
DrawRect(Unidade, baseX+1, baseY+1, baseW+1, baseH+1, Linha1);

DrawRect(Unidade, baseX, baseY-1, baseW+1 , baseH, Linha2);

DrawRect(Unidade, baseX+1, baseY, baseW , baseH , Linha3);

//PrintText(m_font1,baseX + baseW - 10, baseY,  255, 255,255,255, Texto);
//PrintText(m_font1,baseX + baseW + 10, baseY+1,  255, 255,255,255, Texto1);
}
you need add coordinates to you menu, im use struct for menu

Code:
struct menu{
    int BaseX;
    int BaseY;
    int BaseW;
    int BaseH;
} Janela;
to create menu you menu

Code:
SteamFundo(m_pD3Ddev,"Menu -> COD4 ",Janela.BaseX,Janela.BaseY,180,310,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB (20,110,110,110));
SteamCheckBox(m_pD3Ddev,"X","",Janela.BaseX +160,Janela.BaseY+5,15,15,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB  (20,110,110,110));

SteamBase(m_pD3Ddev,Janela.BaseX+5,Janela.BaseY+30,170,270,D3DCOLOR_ARGB (20,132 ,132 ,132),D3DCOLOR_ARGB (20,46,46,46),D3DCOLOR_ARGB (20,120,120,120));

SteamCheckBox(m_pD3Ddev,"","Color Tool",Janela.BaseX +90,Janela.BaseY+40,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Chams",Janela.BaseX +10,Janela.BaseY+40,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Esp Names",Janela.BaseX +10,Janela.BaseY+60,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Esp Box",Janela.BaseX +10,Janela.BaseY+80,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Esp Distance",Janela.BaseX +10,Janela.BaseY+100,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","No Smoke ",Janela.BaseX +10,Janela.BaseY+120,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","No Sky",Janela.BaseX +10,Janela.BaseY+140,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","No Spread ",Janela.BaseX +10,Janela.BaseY+160,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","No Recoil",Janela.BaseX +10,Janela.BaseY+180,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","No Snow",Janela.BaseX +10,Janela.BaseY+200,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Crosshair",Janela.BaseX +10,Janela.BaseY+220,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Lazer Light",Janela.BaseX +10,Janela.BaseY+240,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","ThirdPerson",Janela.BaseX +10,Janela.BaseY+260,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
SteamCheckBox(m_pD3Ddev,"","Clock,FPS..",Janela.BaseX +10,Janela.BaseY+280,15,15,D3DCOLOR_ARGB (20,46 ,46 ,46),D3DCOLOR_ARGB (20,112,112,112),D3DCOLOR_ARGB (20,81,81,81));
result..


PHP Code:
you also can create Steam menuonly modifying the colors 



thx all and credits-me
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
coding, menu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:45 PM.