mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed some stuff in the font. looks abit better now
This commit is contained in:
parent
7d8aec0d5b
commit
c74efbbdb2
|
@ -1100,11 +1100,11 @@ void modc_render()
|
|||
if(chat_active)
|
||||
{
|
||||
|
||||
gfx_texture_set(-1); // TODO: remove when the font looks better
|
||||
/*gfx_texture_set(-1); // TODO: remove when the font looks better
|
||||
gfx_quads_begin();
|
||||
gfx_quads_setcolor(0,0,0,0.4f);
|
||||
gfx_quads_drawTL(x-2, y+1, 300, 8);
|
||||
gfx_quads_end();
|
||||
gfx_quads_end();*/
|
||||
|
||||
// render chat input
|
||||
char buf[sizeof(chat_input)+16];
|
||||
|
@ -1122,11 +1122,13 @@ void modc_render()
|
|||
if(client_tick() > chat_lines[r].tick+50*15)
|
||||
break;
|
||||
|
||||
/*
|
||||
gfx_texture_set(-1); // TODO: remove when the font looks better
|
||||
gfx_quads_begin();
|
||||
gfx_quads_setcolor(0,0,0,0.4f);
|
||||
gfx_quads_drawTL(x-2, y+1, gfx_pretty_text_width(10, chat_lines[r].text)+3, 8);
|
||||
gfx_quads_end();
|
||||
*/
|
||||
|
||||
gfx_pretty_text(x, y, 10, chat_lines[r].text);
|
||||
y -= 8;
|
||||
|
|
|
@ -1137,7 +1137,7 @@ void modmenu_init()
|
|||
input::enable_char_cache();
|
||||
input::enable_key_cache();
|
||||
|
||||
current_font->font_texture = gfx_load_texture("data/big_font.png");
|
||||
current_font->font_texture = gfx_load_texture("data/big_font2.png");
|
||||
|
||||
background_texture = gfx_load_texture("data/gui_bg.png");
|
||||
gui_tileset_texture = gfx_load_texture("data/gui/gui_widgets.png");
|
||||
|
|
Loading…
Reference in a new issue