void SCR_DrawConsole(void) { Con_CheckResize(); if ((cls.state == ca_disconnected) || (cls.state == ca_connecting)) { /* forced full screen console */ Con_DrawConsole(1.0); return; } if ((cls.state != ca_active) || !cl.refresh_prepped) { /* connected, but can't render */ Con_DrawConsole(0.5); Draw_Fill(0, viddef.height / 2, viddef.width, viddef.height / 2, 0); return; } if (scr_con_current) { Con_DrawConsole(scr_con_current); } else { if ((cls.key_dest == key_game) || (cls.key_dest == key_message)) { Con_DrawNotify(); /* only draw notify in game */ } } }
/* ================== SCR_DrawConsole modified by carbon14 to draw black behind a fully down console in support of transparency ================== */ void SCR_DrawConsole (void) { Con_CheckResize (); if (cls.state == ca_disconnected || cls.state == ca_connecting) { // forced full screen console re.DrawFill (0, 0, viddef.width, viddef.height, 0); // c14 add this line MenuRefdefActive = 0; // NeVo Con_DrawConsole (1.0); return; } if (cls.state != ca_active || !cl.refresh_prepped) { // connected, but can't render re.DrawFill (0, 0, viddef.width, viddef.height, 0); // c14 change this line and it needs moving to before Con_DrawConsole MenuRefdefActive = 0; // NeVo Con_DrawConsole (0.5); return; } if (scr_con_current) { MenuRefdefActive = 0; // NeVo Con_DrawConsole (scr_con_current); } else { MenuRefdefActive = 0; // NeVo if (cls.key_dest == key_game || cls.key_dest == key_message) Con_DrawNotify (); // only draw notify in game } }
/* ================== SCR_DrawConsole ================== */ void SCR_DrawConsole (void) { Con_CheckResize (); if (cls.state == ca_disconnected || cls.state == ca_connecting) { // forced full screen console Con_DrawConsole (1.0); return; } 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; } if (scr_con_current) { Con_DrawConsole (scr_con_current); } else { if (cls.key_dest == key_game || cls.key_dest == key_message) Con_DrawNotify (); // only draw notify in game } }
/* ================== SCR_DrawConsole ================== */ void SCR_DrawConsole (void) { Con_CheckResize (); if (cls.state == ca_disconnected || cls.state == ca_connecting) { // forced full screen console Con_DrawConsole (1.0); return; } if (cls.state != ca_active || !cl.refresh_prepped) { // connected, but can't render Con_DrawConsole (0.5); Draw_Fill (0, viddef.height/2, viddef.width, viddef.height/2, 0, 1.0); return; } if (scr_con_current) { Con_DrawConsole (scr_con_current); } // mattx86: we want the console notify lines always visible, even with the console down. //else //{ //if (cls.key_dest == key_game || cls.key_dest == key_message) Con_DrawNotify (); // only draw notify in game //} }
/* ================== SCR_DrawConsole ================== */ void SCR_DrawConsole (void) { float alpha; RB_SetCanvas (CANVAS_CONSOLE); if (!scr_con_current) { // console is up, draw notify instead if (key_dest == key_game || key_dest == key_message) Con_DrawNotify (); // only draw notify in game return; } // guard against going from one mode to another that's less than half the // vertical resolution if (scr_con_current > vid.height) scr_con_current = vid.height; // draw the background if (scr_con_current == vid.height) alpha = 1.0f; // non-transparent if full screen else alpha = bound (0.0f, scr_conalpha.value, 1.0f); R_DrawConsoleBackground (alpha); // draw console text if (key_dest != key_menu) Con_DrawConsole (scr_con_current); }
/* ================== Con_DrawConsole ================== */ void Con_DrawConsole( void ) { // check for console width changes from a vid mode change Con_CheckResize(); // if disconnected, render console full screen if ( cls.state == CA_DISCONNECTED ) { if ( !( cls.keyCatchers & ( KEYCATCH_UI | KEYCATCH_CGAME ) ) ) { Con_DrawSolidConsole( 1.0 ); return; } } if ( con.displayFrac ) { Con_DrawSolidConsole( con.displayFrac ); } else { // draw notify lines if ( cls.state == CA_ACTIVE && con_drawnotify->integer ) { Con_DrawNotify(); } } }
void SCR_DrawConsole(void) { if (scr_con_current) { scr_copyeverything = 1; Con_DrawConsole(scr_con_current, true); clearconsole = 0; } else { if (key_dest == key_game || key_dest == key_message) Con_DrawNotify(); // only draw notify in game } }
/* * SCR_DrawConsole */ static void SCR_DrawConsole( void ) { if( scr_con_current ) { Con_DrawConsole( scr_con_current ); return; } if( cls.state == CA_ACTIVE && ( cls.key_dest == key_game || cls.key_dest == key_message ) ) { Con_DrawNotify(); // only draw notify in game } }