From ab716a8808be7edaa927501b763699493c677ba2 Mon Sep 17 00:00:00 2001 From: z411 Date: Wed, 21 Apr 2021 20:51:19 -0400 Subject: [PATCH] Duel scoreboard: PL display --- qcsrc/client/hud/panel/scoreboard.qc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index ed8342aa4..9fe7bafeb 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1346,9 +1346,13 @@ void Scoreboard_Duel_DrawTable(vector pos, bool invert, entity pl, entity tm) i++; tmp_str = Scoreboard_GetField(pl, SP_PING); - drawstring(tmp + eX * column_width * (invert ? i-- : i++) + (eX * column_width / 2) - eX * (stringwidth(tmp_str, false, hud_fontsize * 1.25) / 2), + drawstring(tmp + eX * column_width * i + (eX * column_width / 2) - eX * (stringwidth(tmp_str, false, hud_fontsize * 1.25) / 2), tmp_str, hud_fontsize * 1.25, sbt_field_rgb, panel_fg_alpha, DRAWFLAG_NORMAL); - + + tmp_str = Scoreboard_GetField(pl, SP_PL); + drawstring(tmp + eX * column_width * (invert ? i-- : i++) + (eX * column_width / 2) - eX * (stringwidth(tmp_str, false, hud_fontsize * 0.75) / 2) + eY * (hud_fontsize.y * 1.25), + tmp_str, hud_fontsize * 0.75, sbt_field_rgb, panel_fg_alpha, DRAWFLAG_NORMAL); + tmp.x = pos.x + panel_bg_padding; tmp.y += hud_fontsize.y * 2; -- 2.39.2