]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Darken eliminated players in the last row of the scoreboard when it lists more than...
authorterencehill <piuntn@gmail.com>
Mon, 10 Sep 2018 14:00:18 +0000 (16:00 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 10 Sep 2018 14:00:18 +0000 (16:00 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 5898f47aa269e805f95c3e67dd4d8de4c943ae77..5cd0fba738365fe3aeca434c8efbf75607105299 100644 (file)
@@ -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;
        }