From 01a53c143145d0d348b6a9b4a71ee5494c428e8b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 3 May 2011 23:10:05 +0300 Subject: [PATCH] Larger fonts for the larger ring --- data/qcsrc/client/sbar.qc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 18b16428..f0586cda 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -1981,7 +1981,7 @@ void Sbar_Timer() void Sbar_Ring() { vector ring_pos, ring1_color, ring2_color; - vector text_pos, text_size; + vector text_pos, text1_size, text2_size; float ring_alpha, ring1_size, ring1_clip, ring2_size, ring2_clip; string text1_msg, text2_msg; @@ -1990,7 +1990,8 @@ void Sbar_Ring() ring1_size = 100; ring2_size = 60; ring_alpha = sbar_alpha_fg * 1; - text_size = '10 10 0'; + text1_size = '12 12 0'; + text2_size = '10 10 0'; switch(getstati(STAT_SBRING1_TYPE)) { @@ -2031,16 +2032,16 @@ void Sbar_Ring() if(text1_msg != "") { DrawCircleClippedPic(ring_pos, ring1_size, "gfx/hud/sb_ring.tga", ring1_clip, ring1_color, ring_alpha, DRAWFLAG_ADDITIVE); - text_pos_x = ring_pos_x - stringwidth(text1_msg, FALSE, text_size) / 2; + text_pos_x = ring_pos_x - stringwidth(text1_msg, FALSE, text1_size) / 2; text_pos_y = ring_pos_y - ring1_size / 2; - drawstring(text_pos, text1_msg, text_size, ring1_color, sbar_alpha_fg, DRAWFLAG_NORMAL); + drawstring(text_pos, text1_msg, text1_size, ring1_color, sbar_alpha_fg, DRAWFLAG_NORMAL); } if(text2_msg != "") { DrawCircleClippedPic(ring_pos, ring2_size, "gfx/hud/sb_ring.tga", ring2_clip, ring2_color, ring_alpha, DRAWFLAG_ADDITIVE); - text_pos_x = ring_pos_x - stringwidth(text2_msg, FALSE, text_size) / 2; + text_pos_x = ring_pos_x - stringwidth(text2_msg, FALSE, text2_size) / 2; text_pos_y = ring_pos_y + ring1_size / 2; - drawstring(text_pos, text2_msg, text_size, ring2_color, sbar_alpha_fg, DRAWFLAG_NORMAL); + drawstring(text_pos, text2_msg, text2_size, ring2_color, sbar_alpha_fg, DRAWFLAG_NORMAL); } } -- 2.39.2