Menu Dissapearing.

Posts 16–30 of 31 · Page 2 of 3
Lol, theres actually a TUT to fix gellins base from disappearing.
Quote Originally Posted by deathninjak0 View Post
Lol, theres actually a TUT to fix gellins base from disappearing.
mm ya but isn't that the other way of recreating the font when a hotkey is pressed?

and not automatically
Quote Originally Posted by swatfx View Post
mm ya but isn't that the other way of recreating the font when a hotkey is pressed?

and not automatically
It automatically creates the font.
Quote Originally Posted by deathninjak0 View Post
It automatically creates the font.
really i never saw that.. i just use a slightly modified version of Gordon's hook
Use The Search Button mmbob release Some Code Recreate The font
Quote Originally Posted by swatfx View Post
the more hacks there are using the same base the more likely is that Hackshield will decide to detect it..

but ya its a somewhat free forum so do whatever u like
lol "decide" to detect it..
Quote Originally Posted by swatfx View Post
the more hacks there are using the same base the more likely is that Hackshield will decide to detect it..

but ya its a somewhat free forum so do whatever u like
A Base Cant Be Detected Its Just A Base
Quote Originally Posted by whit View Post


A Base Cant Be Detected Its Just A Base
Some people just don't understand the difference from the menu class and the hook it's using..
Quote Originally Posted by Void View Post
Some people just don't understand the difference from the menu class and the hook it's using..
Very True.
Credits to mmbob.

Code:
void ReFont(LPDIRECT3DDEVICE9 pDevice)
{
	if (g_pDevice != pDevice)
	{
		g_pDevice = pDevice;
		try
		{
			if (pFont != 0)
				pFont->Release();
		} catch (...) {}
		pFont = 0;
		D3DXCreateFont(pDevice, 12, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &pFont);
	}
}
Quote Originally Posted by ac1d_buRn View Post
Credits to mmbob.

Code:
void ReFont(LPDIRECT3DDEVICE9 pDevice)
{
    if (g_pDevice != pDevice)
    {
        g_pDevice = pDevice;
        try
        {
            if (pFont != 0)
                pFont->Release();
        } catch (...) {}
        pFont = 0;
        D3DXCreateFont(pDevice, 12, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &pFont);
    }
}
Can Help Me On How To Change It Heres My Code -

void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
if( !Base.bSet.bInit )
{
D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont);
Base.bSet.bInit = true;
}

if( Directx.pFont == NULL )
Directx.pFont->OnLostDevice();
else
{
Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 0, 0), Directx.pFont, "MPGH.NET");
Menu.RenderMenu();
}
^ It's alright dude i forgot to mention i fixed it by using mmbob's method already.
Thanks for taking your time and helping though.

/Request Close.
Quote Originally Posted by CodeDemon View Post
Make a function that recreates the font every X seconds?
Don't forget to release the old font or you will get a big memory leak.
Quote Originally Posted by Gordon` View Post
Don't forget to release the old font or you will get a big memory leak.
memory leak = bad
Quote Originally Posted by Sydney View Post
Post your Code...
And i will Fix it.
i thanked becuase i like people like u that offer to help
Posts 16–30 of 31 · Page 2 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us