Automatically Show F11 Panel

Posted By: CanadianDavid

Automatically Show F11 Panel - 12/19/13 01:07

I don't know if it's a bug in my code, but I notice sometimes that if I do not start the F11 debug panel immediately after starting my game, it will not show up (although I can hear the beep() sound). Is there an easy way to automatically show this panel on startup?
Posted By: Superku

Re: Automatically Show F11 Panel - 12/19/13 08:02

Open the include folder of your GStudio installation, then open default.c. There you will find def_debug() which is the function in question to show the debug panel.

Your problem may be related to other things, for example when you press Alt+Tab to leave your game, (edit a shader, check your e-mails or whatever) then click your game window again, the engine will think that you are still pressing Alt. As a result, when pressing F11 only the following code will be executed:

Code:
void def_debug() 
{
    beep();
    if(key_alt) 
    { 
        diag_status(); 
        return; 
    }
    ...
}

Posted By: CanadianDavid

Re: Automatically Show F11 Panel - 12/19/13 09:16

You're right, it is due to alt-tabbing out of the window! Pressing alt again restores its functionality. Thanks Superku!
© 2024 lite-C Forums