From 17cf6ed09d4d80c0f98df3e54a77879d31571d10 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 8 Jun 2024 21:32:54 +1000 Subject: [PATCH] Increase size of sv_teamnagger message, also use bold Implements https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2702 --- qcsrc/client/hud/panel/infomessages.qc | 4 ++++ qcsrc/client/hud/panel/timer.qc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/infomessages.qc b/qcsrc/client/hud/panel/infomessages.qc index 43ed2440e..f68e8722c 100644 --- a/qcsrc/client/hud/panel/infomessages.qc +++ b/qcsrc/client/hud/panel/infomessages.qc @@ -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; } } diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 09557afe9..ae796fbdd 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -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(); } -- 2.39.2