Menu help.

Posts 1–2 of 2 · Page 1 of 1
Menu help.
Yo guy'z i was woundering is it that hard to put a pic in your menu like the mpgh vip so can anyone tell me how to put a pic into your hack.
Draw using sprites... il post a example in a minute...

Code:
BYTE Menu[ ] = {/*Put Your Sprite Bytes Here!*/};

	D3DXVECTOR3 Position;
	LPDIRECT3DTEXTURE9 pTexture;
	LPD3DXSPRITE pSprite;

    if(!pTexture)D3DXCreateTextureFromFileInMemoryEx(pDevice,
                                                                                           &Menu,
                                                                                           sizeof(Menu),
                                                                                           400,
                                                                                           600,
                                                                                           D3DX_DEFAULT,
                                                                                           0,
                                                                                           D3DFMT_UNKNOWN,
                                                                                           D3DPOOL_MANAGED,
                                                                                           D3DX_DEFAULT, 
                                                                                           D3DX_DEFAULT,
                                                                                           0,
                                                                                           NULL,
                                                                                           NULL,
                                                                                           &pTexture);
	if(!pSprite)D3DXCreateSprite(pDevice,&pSprite);


	if(Sprite)
	{
		pSprite->Begin(D3DXSPRITE_ALPHABLEND);
		pSprite->Draw(pTexture, NULL, NULL, &Position, 0xFFFFFFFF);
		pSprite->End();
	}

	if (GetAsyncKeyState(VK_INSERT)&1)
		Sprite=!Sprite;
	}
Put that in endscene and define BYTE Menu with your sprite bytes then it wont get streched.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?