Create a Transparent Menu

Posts 113 of 13 · Page 1 of 1
Create a Transparent Menu
I tried using this function but no menu appeared.

const D3DCOLOR textBlackTrans = D3DCOLOR_ARGB(155,0,0,0);
DrawBox(pDevice,10,40,148,290,textBlackTrans );

Code:
void DrawBox(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h, D3DCOLOR col)
{
	struct {
		float x,y,z,rhw;
		DWORD dwColor;
	        } qV[4] = { { (float)x    , (float)(y+h), 0.0f, 0.0f, col},
				{ (float)x    , (float)y    , 0.0f, 0.0f, col},
				{ (float)(x+w), (float)(y+h), 0.0f, 0.0f, col},
				{ (float)(x+w), (float)y    , 0.0f, 0.0f, col} };

    pDevice->SetPixelShader(NULL);
    pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true);
    pDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA);
    pDevice->SetTexture(0, NULL);
    pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,qV,sizeof(qV[0]));
}
Trying testing it in game, not in lobby? The last time i used that it only worked in game
Yah it only works in game. Wierd...
Another way would be making your menu on photoshop set (opacity)
and use sprites on your hack this way your menu will allways be transparent .
Quote Originally Posted by RagedYet View Post
Another way would be making your menu on photoshop set (opacity)
and use sprites on your hack this way your menu will allways be transparent .
Only downside about that is that you can't change the opacity while in game like hans base. Unless you use several images, like one for 20%, 40%, etc.
Quote Originally Posted by RagedYet View Post
Another way would be making your menu on photoshop set (opacity)
and use sprites on your hack this way your menu will allways be transparent .
I dont think those guys kno how to work sprites, without google-ing it.
Quote Originally Posted by topblast View Post


I dont think those guys kno how to work sprites, without google-ing it.
/ I do but I d/c after a few minutes when i draw the pic
Quote Originally Posted by topblast View Post


I dont think those guys kno how to work sprites, without google-ing it.
Sprites are easy
Well with sprites i only use one picture and with opacity to 75% give me the lvl of transparency i want and i dont have any problems with my hack not even after patch
so you must be doing something wrong ^^
I can draw sprites, haven't changed 1 bit of code since beginning of month.

topblast, your full of shit, STFU for good! you only troll threads and never write something useful.
u can use THIS one

it is working in Lobby and InGame
Posts 113 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?