Meu Metodo de Menu Transparente.

Posts 1–15 of 53 · Page 1 of 4
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 '
Quote Originally Posted by Strikex View Post
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
& Eu '
Créditos: Directx.
achei que foçe do kotenpof
vlw então mano ...
Quote Originally Posted by Strikex View Post
achei que foçe do kotenpof
vlw então mano ...
A função no Directx é chamada de DrawFillBox, tem algumas mudanças nessa função postada e se não me engano essas mudanças são do Hans.
agora fiquei confuso G_G
hahhaa
mas debooa , sei que funciona..
@eu coloqueimeu metodo porque eu uso ele G_G'
O meu é mais Buniiii:



Créditos:
Solify
Alessandro10
WE11ington
S0aD

(Irei dar uma organizada melhor, colocarei Spoilers, oranagizarei em Grupos assim como Gerais,Removedores e Etc...)
Quote Originally Posted by S0aD View Post
O meu é mais Buniiii:



Créditos:
Solify
Alessandro10
WE11ington
S0aD

(Irei dar uma organizada melhor, colocarei Spoilers, oranagizarei em Grupos assim como Gerais,Removedores e Etc...)
Lembra muito CAP (Clube Atlético Paranaense) ¬¬

Mas é um menu massa
Ficaria melhor se tivesse um azul claro no lugar do preto, ou um branco, com contornos em azul claro ;D
Quote Originally Posted by Capevaldo View Post


Lembra muito CAP (Clube Atlético Paranaense) ¬¬

Mas é um menu massa
Ficaria melhor se tivesse um azul claro no lugar do preto, ou um branco, com contornos em azul claro ;D
Minha cor favorita é o Preto
Depois eu vou pegar o do Ale tbm , hum'
kkk'
achei legal G_G'
você só erro na Borda , não fica tão legal preto com preto.
Aff eu não passo do LvL 9, e meus Crédits não aumentam?
Capevaldoooooo para de roba minha EXP cara xD
Quote Originally Posted by S0aD View Post
Aff eu não passo do LvL 9, e meus Crédits não aumentam?
Capevaldoooooo para de roba minha EXP cara xD
Sou malvadão, ladrão de exp ;D

hahah

(Quem tá roubando é o we11/alessandro) .-.
S0aD quanta peleja pra vc me add no msn em add ai amor <3 euclidesnetofg@hotmail0.com
hahha
eu arrumei a do Ale certinho aqui para mim , fico legal , porem estou com preguiça de adc novos hackers :x
Posts 1–15 of 53 · Page 1 of 4
This thread is closed for replies.

Tags for this Thread

None

Need help?