ExclamationMenu Keeps Disappearing

Posts 1–10 of 10 · Page 1 of 1
Menu Keeps Disappearing
Well,I started coding this hack so far,and its all working,except for like,the menu will disappear and some times not show all the hacks because part of the list of jut like gone and i can tell because half a word liek the top and bottom will be chopped off,Any ideas on how i can fix this?
So far it looks liek this

ScreenShot:

And it disappears once i go into game and then come to lobby it will be gone and wont pop back up
f you use the base (whit / gellin / hans). Problem is here:

Code:
D3DXCreateFont -> pDevice / g_pDevice.
To Fix:

Code:
    if (g_pDevice != pDevice) 
       {
          g_pDevice = pDevice;

    ............................. 

    Now you should know how to proceed?
if(GetAsyncKeyState(VK_NUMPAD1)&1){
Call the Font here again.
}

Or just use the function above me.
Code:
void c3DMisc::SetFont(LPDIRECT3DDEVICE9 pDevice)
{
	if( D3D.Settings.pFont == NULL ){
		D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
	}else{

	if (NULLDevice != pDevice)
	{
		NULLDevice = pDevice;
		try
		{
			if (D3D.Settings.pFont != 0)
				D3D.Settings.pFont->Release();

    } catch (...) {}
	D3D.Settings.pFont = 0;
	D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
	}}
}
Quote Originally Posted by kotentopf View Post
Code:
void c3DMisc::SetFont(LPDIRECT3DDEVICE9 pDevice)
{
	if( D3D.Settings.pFont == NULL ){
		D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
	}else{

	if (NULLDevice != pDevice)
	{
		NULLDevice = pDevice;
		try
		{
			if (D3D.Settings.pFont != 0)
				D3D.Settings.pFont->Release();

    } catch (...) {}
	D3D.Settings.pFont = 0;
	D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
	}}
}
off topic, but does anti aliasing really make that much of a difference?
i just recalled the font,so it works now but you will have to press delete to bring it back up if it disappears
[HIGHLIGHT=C++] if(Directx.pFont != 0)
Directx.pFont->Release();
Directx.pFont = 0;[/HIGHLIGHT]

[HIGHLIGHT=C++]
pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
pDevice->SetRenderState( D3DRS_BLENDOP, D3DBLENDOP_ADD );
pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
pDevice->SetRenderState( D3DRS_SEPARATEALPHABLENDENABLE, FALSE );
pDevice->SetRenderState( D3DRS_STENCILENABLE, FALSE );
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
pDevice->SetRenderState( D3DRS_VERTEXBLEND, D3DVBF_DISABLE );
pDevice->SetRenderState( D3DRS_INDEXEDVERTEXBLENDENABLE, FALSE );
pDevice->SetRenderState( D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_ALPHA | D3DCOLORWRITEENABLE_BLUE |D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_RED );
pDevice->SetRenderState( D3DRS_SHADEMODE, D3DSHADE_GOURAUD );
pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
pDevice->SetRenderState( D3DRS_SPECULARENABLE, FALSE );
pDevice->SetRenderState( D3DRS_LIGHTING, FALSE );
pDevice->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );
pDevice->SetRenderState( D3DRS_ZWRITEENABLE, FALSE );
pDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );[/HIGHLIGHT]

/thread
ALL OF THE ABOVE. HAHAHAHAHA THEY ALL WORK
Reset the font.
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us