]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/notify.qc
Rename a macro
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / notify.qc
index 1f0e26b9a5e7274f8559ab7c402e6d619519e478..e6cf6ec1d4f138906dbe0ee2481f576e92b369de 100644 (file)
@@ -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,8 +50,14 @@ void HUD_Notify()
                if (!autocvar_hud_panel_notify)
                        return;
 
-       HUD_Panel_UpdateCvars();
-       HUD_Panel_DrawBg(1);
+       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();
 
        if (!autocvar__hud_configure)
                if (notify_count == 0)