]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When scoreboard is shown in UI or team selection mode darken the background so that...
authorterencehill <piuntn@gmail.com>
Tue, 28 May 2024 23:06:20 +0000 (01:06 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 28 May 2024 23:06:20 +0000 (01:06 +0200)
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

index 9e1fd9181c92006335c518e01fe75e62c56bac0f..2710427e08c9ecfd0819006d0bf7ab3666eeb744 100644 (file)
@@ -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