From 7f98d76431742fb49120bc7163ea6e7693b1723d Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 29 May 2024 01:06:20 +0200 Subject: [PATCH] When scoreboard is shown in UI or team selection mode darken the background so that it's easier to tell these modes from the normal scoreboard. Unfortunately it's not possible to darken chat and console notifications too because they are drawn by the engine after the CSQC HUD --- qcsrc/client/hud/panel/scoreboard.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 9e1fd9181..2710427e0 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -2411,6 +2411,9 @@ void Scoreboard_Draw() string str; vector str_pos; + if (scoreboard_ui_enabled) + drawfill('0 0 0', eX * vid_conwidth + eY * vid_conheight, '0 0 0', 0.7 * panel_fade_alpha, DRAWFLAG_NORMAL); + vector sb_gameinfo_type_fontsize, sb_gameinfo_detail_fontsize; // Begin of Game Info Section -- 2.39.2