Meu Metodo de Menu Transparente.
Eu Adicionei no Menu.h
Code:
void FillRGB( int x, int y, int w, int h, D3DCOLOR youcor, IDirect3DDevice9* pDevice ,bool transparent)
{
if(transparent == true)
{
const DWORD D3D_FVF = D3DFVF_XYZRHW | D3DFVF_DIFFUSE;
struct Vertex
{
float x,y,z,ht;
DWORD youcor;
}
V[4] =
{
{(float)x,(float)(y+h), 0.0f, 0.0f, youcor},
{(float)x,(float)y, 0.0f, 0.0f, youcor},
{(float)(x+w),(float)(y+h), 0.0f, 0.0f, youcor},
{(float)(x+w),(float)y, 0.0f, 0.0f,youcor}
};
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));
}
if(transparent == false)
{
if( w < 0 )w = 1;
if( h < 0 )h = 1;
if( x < 0 )x = 1;
if( y < 0 )y = 1;
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, youcor, 0, 0 );
}
}
e no Hacker.
eu estava usandoa abase do Solify.
Eu coloquei o Drawbox só para fazer borda.
Fico Assim :
Code:
if(Menu){
DrawBox(20,150,230,150,Red,pDevice);
FillRGB( 20, 150, 150, 35, 0x3DFF0000, pDevice ,true);
DrawText(30,108,Blue,"[BC]DeathMenuV1.4",pDevice);
FillRGB( 20, 185, 150, 200, 0x3DFF0000, pDevice ,true);//0x3dff0000 Vermelho
for(int x = 0; x < 14; x++){
if(MenuSelection == x){
CurrentOption(25,150+20*x,15,140,Blue,pDevice);
}
não fico tão bom , mas é um bom quebra Galho.
Creditos
:
kotentopf = por passar.
Directx G_G
& Eu

'