diff --git a/data/console.png b/data/console.png new file mode 100644 index 000000000..d2bb589bd Binary files /dev/null and b/data/console.png differ diff --git a/data/console_bar.png b/data/console_bar.png new file mode 100644 index 000000000..978007734 Binary files /dev/null and b/data/console_bar.png differ diff --git a/datasrc/teewars.ds b/datasrc/teewars.ds index 860700b49..ac3d37483 100644 --- a/datasrc/teewars.ds +++ b/datasrc/teewars.ds @@ -242,6 +242,13 @@ images { browseicons { filename "data/browse_icons.png" } + + console_bg { + filename "data/console.png" + } + console_bar { + filename "data/console_bar.png" + } } powerups { diff --git a/src/engine/external/pa.c b/src/engine/external/pa.c index 71afc0654..24b773c51 100644 --- a/src/engine/external/pa.c +++ b/src/engine/external/pa.c @@ -23,9 +23,13 @@ #include "portaudio/pa_ringbuffer.c" #else #define HAVE_SYS_SOUNDCARD_H + #define PA_USE_ALSA #include "portaudio/pa_linux_alsa.c" - //#include "portaudio/pa_unix_oss.c" + + /*#define PA_USE_OSS + #include "portaudio/pa_unix_oss.c" */ + #include "portaudio/pa_unix_hostapis.c" #endif #elif defined(CONF_FAMILY_WINDOWS) diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp index 4b70739f3..c04477a12 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;