MCPcopy Create free account
hub / github.com/demoth/jake2 / DrawConsole

Method DrawConsole

client/src/main/java/jake2/client/SCR.java:526–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524 * ================== SCR_DrawConsole ==================
525 */
526 private static void DrawConsole() {
527 Console.CheckResize();
528
529 if (cls.state == ca_disconnected || cls.state == ca_connecting) { // forced
530 // full
531 // screen
532 // console
533 Console.DrawConsole(1.0f);
534 return;
535 }
536
537 if (cls.state != ca_active || !ClientGlobals.cl.refresh_prepped) { // connected, but
538 // can't render
539 Console.DrawConsole(0.5f);
540 ClientGlobals.re.DrawFill(0, ClientGlobals.viddef.getHeight() / 2, ClientGlobals.viddef.getWidth(), ClientGlobals.viddef.getHeight() / 2,
541 0);
542 return;
543 }
544
545 if (scr_con_current != 0) {
546 Console.DrawConsole(scr_con_current);
547 } else {
548 if (cls.key_dest == key_game || cls.key_dest == key_message)
549 Console.DrawNotify(); // only draw notify in game
550 }
551 }
552
553 // =============================================================================
554

Callers 1

UpdateScreen2Method · 0.95

Calls 6

CheckResizeMethod · 0.95
DrawConsoleMethod · 0.95
DrawNotifyMethod · 0.95
getHeightMethod · 0.80
getWidthMethod · 0.80
DrawFillMethod · 0.65

Tested by

no test coverage detected