From: terencehill Date: Mon, 10 Sep 2018 14:00:18 +0000 (+0200) Subject: Darken eliminated players in the last row of the scoreboard when it lists more than... X-Git-Tag: xonotic-v0.8.5~1841^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2e763a2fefaa3e22e0fb2bd9089d2024b5f85b24;p=xonotic%2Fxonotic-data.pk3dir.git Darken eliminated players in the last row of the scoreboard when it lists more than one player --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 5898f47aa..5cd0fba73 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1025,6 +1025,12 @@ vector Scoreboard_DrawOthers(vector item_pos, vector rgb, int this_team, entity field_pos.x += fieldpadding + (max(fieldsize, min_fieldsize) - fieldsize) * 0.5; drawstring(field_pos, field, hud_fontsize, sbt_field_rgb, sbt_fg_alpha, DRAWFLAG_NORMAL); } + if(pl.eliminated) + { + h_size.x = column_width + hud_fontsize.x * 0.25; + h_size.y = hud_fontsize.y; + drawfill(pos - hud_fontsize.x * 0.25 * eX, h_size, '0 0 0', 0.5 * panel_fg_alpha, DRAWFLAG_NORMAL); + } pos.x += column_width; pos.x += hud_fontsize.x; }