From: terencehill Date: Tue, 28 May 2024 23:06:20 +0000 (+0200) Subject: When scoreboard is shown in UI or team selection mode darken the background so that... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f98d76431742fb49120bc7163ea6e7693b1723d;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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