]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Increase size of sv_teamnagger message, also use bold
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 8 Jun 2024 11:32:54 +0000 (21:32 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 5 Aug 2024 16:26:25 +0000 (02:26 +1000)
Implements https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2702

qcsrc/client/hud/panel/infomessages.qc
qcsrc/client/hud/panel/timer.qc

index 43ed2440e7771f3b65437e5057e8b5bc804f8bff..f68e8722cced6d62a8bbfcfde5df2c49143478e0 100644 (file)
@@ -200,7 +200,11 @@ void HUD_InfoMessages()
                                entity tm = GetTeam(myteam, false);
                                if (tm && tm.team != NUM_SPECTATOR && tm.team_size == ts_max)
                                        s = strcat(s, sprintf(_(" Press ^3%s%s to adjust"), getcommandkey(_("team selection"), "team_selection_show"), blinkcolor));
+                               fontsize *= 1.125; // perfect float
+                               draw_beginBoldFont();
                                InfoMessage(s);
+                               draw_endBoldFont();
+                               fontsize /= 1.125;
                        }
                }
 
index 09557afe91f622a84bd0f64f80e1e87dea4c3503..ae796fbdd3a89a626542d1d3d257d362dff9a454 100644 (file)
@@ -164,8 +164,8 @@ void HUD_Timer()
                (swap ? subtimer_str : timer_str), timer_size,
                (swap ? subtimer_color : timer_color), panel_fg_alpha, DRAWFLAG_NORMAL);
 
-       draw_endBoldFont();
-
        if(subtext)
                drawstring_aspect(pos + eY * timer_size.y, subtext, subtext_size, '0 1 0', panel_fg_alpha, DRAWFLAG_NORMAL);
+
+       draw_endBoldFont();
 }