X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fnotify.qc;h=0dfb11db766bf0865ab7fd999e9b9d4cbd2e4ba5;hp=910113f4e083fd877ab5d31250b82ff2e678ba86;hb=7069dc3f41678554d089db582ccf16da1f8874a5;hpb=7524c05918362f3348973a04533523e4df15d358 diff --git a/qcsrc/client/hud/panel/notify.qc b/qcsrc/client/hud/panel/notify.qc index 910113f4e..0dfb11db7 100644 --- a/qcsrc/client/hud/panel/notify.qc +++ b/qcsrc/client/hud/panel/notify.qc @@ -1,8 +1,20 @@ #include "notify.qh" +#include +#include // Notifications (#4) +void HUD_Notify_Export(int fh) +{ + // allow saving cvars that aesthetically change the panel into hud skin files + HUD_Write_Cvar("hud_panel_notify_flip"); + HUD_Write_Cvar("hud_panel_notify_fontsize"); + HUD_Write_Cvar("hud_panel_notify_time"); + HUD_Write_Cvar("hud_panel_notify_fadetime"); + HUD_Write_Cvar("hud_panel_notify_icon_aspect"); +} + void HUD_Notify_Push(string icon, string attacker, string victim) { if (icon == "") @@ -114,7 +126,7 @@ void HUD_Notify() { attacker = sprintf(_("Player %d"), count + 1); victim = sprintf(_("Player %d"), count + 2); - icon = Weapons_from(min(WEP_FIRST + count * 2, WEP_LAST)).model2; + icon = REGISTRY_GET(Weapons, min(WEP_FIRST + count * 2, WEP_LAST)).model2; alpha = bound(0, 1.2 - count / entry_count, 1); } else