X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fnotify.qc;h=e6cf6ec1d4f138906dbe0ee2481f576e92b369de;hb=3d632e50853d7bf6e499fc4400e5f4254ad54a1c;hp=a5e923825a989fc13e9b76b9c077de5b4ce97c31;hpb=61d746760851b92ea6124dcc179c0f5178b62169;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/notify.qc b/qcsrc/client/hud/panel/notify.qc index a5e923825..e6cf6ec1d 100644 --- a/qcsrc/client/hud/panel/notify.qc +++ b/qcsrc/client/hud/panel/notify.qc @@ -1,5 +1,8 @@ #include "notify.qh" -// Notification area (#4) + +#include "scoreboard.qh" + +// Notifications (#4) void HUD_Notify_Push(string icon, string attacker, string victim) { @@ -47,12 +50,14 @@ void HUD_Notify() if (!autocvar_hud_panel_notify) return; - HUD_Panel_UpdateCvars(); + if(1 - scoreboard_fade_alpha <= 0) + return; + HUD_Panel_LoadCvars(1 - scoreboard_fade_alpha); if (autocvar_hud_panel_notify_dynamichud) HUD_Scale_Enable(); else HUD_Scale_Disable(); - HUD_Panel_DrawBg(1); + HUD_Panel_DrawBg(); if (!autocvar__hud_configure) if (notify_count == 0)