From 46b2a81407220ae18248b763643f059c117ca838 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 25 Jun 2011 16:06:27 +0200 Subject: [PATCH] Better (shorter) spacing in between msgs and lines --- qcsrc/client/hud.qc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 7c91aea4a..3acbd1c24 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4529,9 +4529,9 @@ void HUD_CenterPrint (void) getWrappedLine_remaining = argv(k); ts = getWrappedLine(panel_size_x, fontsize, stringwidth_colors); if (ts != "") - pos_y -= fontsize_y * 1.5; - else pos_y -= fontsize_y; + else + pos_y -= fontsize_y * 0.35; if (pos_y < panel_pos_y) // check if the next line can be shown return; } @@ -4549,10 +4549,10 @@ void HUD_CenterPrint (void) if (align) pos_x = panel_pos_x + (panel_size_x - stringwidth(ts, TRUE, fontsize)) * align; drawcolorcodedstring(pos + '0 1 0' * 1.5 * (1 - sz) * fontsize_y, ts, fontsize, a * panel_fg_alpha, DRAWFLAG_NORMAL); - pos_y += fontsize_y * 1.5; + pos_y += fontsize_y; } else - pos_y += fontsize_y; + pos_y += fontsize_y * 0.35; if (!autocvar_hud_panel_centerprint_flip && pos_y > panel_pos_y + panel_size_y - fontsize_y) // check if the next line can be shown { drawfontscale = '1 1 0'; @@ -4562,12 +4562,13 @@ void HUD_CenterPrint (void) } if (autocvar_hud_panel_centerprint_flip) { - pos_y = current_msg_pos_y; + pos_y = current_msg_pos_y - 0.7 * fontsize_y; if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages pos_y += 1.5 * fontsize_y * (1 - a*a); } else { + pos_y += 0.7 * fontsize_y; if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages pos_y -= 1.5 * fontsize_y * (1 - a*a); } -- 2.39.2