Larger fonts for the larger ring
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index 18b1642..f0586cd 100644 (file)
@@ -1981,7 +1981,7 @@ void Sbar_Timer()
 void Sbar_Ring()\r
 {\r
        vector ring_pos, ring1_color, ring2_color;\r
-       vector text_pos, text_size;\r
+       vector text_pos, text1_size, text2_size;\r
        float ring_alpha, ring1_size, ring1_clip, ring2_size, ring2_clip;\r
        string text1_msg, text2_msg;\r
 \r
@@ -1990,7 +1990,8 @@ void Sbar_Ring()
        ring1_size = 100;\r
        ring2_size = 60;\r
        ring_alpha = sbar_alpha_fg * 1;\r
-       text_size = '10 10 0';\r
+       text1_size = '12 12 0';\r
+       text2_size = '10 10 0';\r
 \r
        switch(getstati(STAT_SBRING1_TYPE))\r
        {\r
@@ -2031,16 +2032,16 @@ void Sbar_Ring()
        if(text1_msg != "")\r
        {\r
                DrawCircleClippedPic(ring_pos, ring1_size, "gfx/hud/sb_ring.tga", ring1_clip, ring1_color, ring_alpha, DRAWFLAG_ADDITIVE);\r
-               text_pos_x = ring_pos_x - stringwidth(text1_msg, FALSE, text_size) / 2;\r
+               text_pos_x = ring_pos_x - stringwidth(text1_msg, FALSE, text1_size) / 2;\r
                text_pos_y = ring_pos_y - ring1_size / 2;\r
-               drawstring(text_pos, text1_msg, text_size, ring1_color, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+               drawstring(text_pos, text1_msg, text1_size, ring1_color, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
        }\r
        if(text2_msg != "")\r
        {\r
                DrawCircleClippedPic(ring_pos, ring2_size, "gfx/hud/sb_ring.tga", ring2_clip, ring2_color, ring_alpha, DRAWFLAG_ADDITIVE);\r
-               text_pos_x = ring_pos_x - stringwidth(text2_msg, FALSE, text_size) / 2;\r
+               text_pos_x = ring_pos_x - stringwidth(text2_msg, FALSE, text2_size) / 2;\r
                text_pos_y = ring_pos_y + ring1_size / 2;\r
-               drawstring(text_pos, text2_msg, text_size, ring2_color, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+               drawstring(text_pos, text2_msg, text2_size, ring2_color, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
        }\r
 }\r
 \r