Tutorial *20*

another simple tutorial by Echon!
open client\cl_scrn.c
goto where 'void SCR_RunConsole (void)' is at change:



        scr_conlines = 0.5;        // half screen

to this:


        scr_conlines = 0.55;        // ECHON { WAS 0.5 }

0.5 is how much of the screen is taken up by the console, 1 being full screen, 0.5 being half

then scroll down to 'void SCR_DrawConsole (void)' change:



    if (cls.state != ca_active || !cl.refresh_prepped)

    {    // connected, but can't render

        Con_DrawConsole (0.5);

        re.DrawFill (0, viddef.height/2, viddef.width, viddef.height/2, 0);

        return;

    }

to this:


    if (cls.state != ca_active || !cl.refresh_prepped)

    {    // connected, but can't render

        Con_DrawConsole (0.55); // ECHON { was 0.5 }

        re.DrawFill (0, viddef.height*0.55, viddef.width, viddef.height*0.55, 0); // ECHON { tweaked this for easier height manipulation }

        return;

    }

just like above, 0.5 (or what is now 0.55) is the console height, where 1 is full screen and 0.5 is half screen

simple enough! :)
- Echon (irc.telefragged.com #openquake regularly)


 
Sign up
Login:
Passwd:
[Remember Me]