From 2185df925409cd400bfbe75fa181794773b3c73b Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 11 Feb 2008 08:24:59 +0000 Subject: shadow on the console. respect sv_sendheartbeats --- src/game/client/gc_console.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/game/client/gc_console.cpp') diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp index 1f596e79..fffe61ab 100644 --- a/src/game/client/gc_console.cpp +++ b/src/game/client/gc_console.cpp @@ -262,7 +262,17 @@ void console_render() gfx_mapscreen(screen.x, screen.y, screen.w, screen.h); + // do shadow + gfx_texture_set(-1); + gfx_quads_begin(); + gfx_setcolorvertex(0, 0,0,0, 0.5f); + gfx_setcolorvertex(1, 0,0,0, 0.5f); + gfx_setcolorvertex(2, 0,0,0, 0.0f); + gfx_setcolorvertex(3, 0,0,0, 0.0f); + gfx_quads_drawTL(0,console_height,screen.w,10.0f); + gfx_quads_end(); + // do background gfx_texture_set(data->images[IMAGE_CONSOLE_BG].id); gfx_quads_begin(); gfx_setcolor(0.2f, 0.2f, 0.2f,0.9f); @@ -270,18 +280,21 @@ void console_render() gfx_quads_drawTL(0,0,screen.w,console_height); gfx_quads_end(); + // do the lower bar gfx_texture_set(data->images[IMAGE_CONSOLE_BAR].id); gfx_quads_begin(); gfx_setcolor(1.0f, 1.0f, 1.0f, 0.9f); gfx_quads_setsubset(0,0.1f,screen.w*0.015f,1-0.1f); gfx_quads_drawTL(0,console_height-10.0f,screen.w,10.0f); gfx_quads_end(); + + console_height -= 10.0f; { - float font_size = 12.0f; - float row_height = font_size*1.4f; + float font_size = 10.0f; + float row_height = font_size*1.25f; float width = gfx_text_width(0, font_size, console_input, -1); float x = 3, y = console_height - row_height - 2; float prompt_width = gfx_text_width(0, font_size, ">", -1)+2; -- cgit 1.4.1