From acffe66ebe63f3ecc970db0feab33a6e85a7d1f4 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 10 Feb 2008 01:48:39 +0000 Subject: flashified the console --- src/game/client/gc_console.cpp | 15 +++++++++++++-- 1 file changed, 13 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 4b70739f..c04477a1 100644 --- a/src/game/client/gc_console.cpp +++ b/src/game/client/gc_console.cpp @@ -1,4 +1,5 @@ #include "gc_console.h" +#include "../generated/gc_data.h" extern "C" { #include @@ -262,12 +263,22 @@ void console_render() gfx_mapscreen(screen.x, screen.y, screen.w, screen.h); - gfx_texture_set(-1); + gfx_texture_set(data->images[IMAGE_CONSOLE_BG].id); gfx_quads_begin(); - gfx_setcolor(0.4,0.2,0.2,0.8); + gfx_setcolor(0.2f, 0.2f, 0.2f,0.8f); + gfx_quads_setsubset(0,-console_height*0.075f,screen.w*0.075f*0.5f,0); gfx_quads_drawTL(0,0,screen.w,console_height); gfx_quads_end(); + gfx_texture_set(data->images[IMAGE_CONSOLE_BAR].id); + gfx_quads_begin(); + gfx_setcolor(1.0f, 1.0f, 1.0f, 0.8f); + 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; -- cgit 1.4.1