X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud.qh;h=55d4bd0db8c9fdd71265993fea3dd372549c83c9;hp=5c062c5facb3400224105766e1628651f83c8c50;hb=71e6c75bc408ae5a116f296797c49c0cef7be113;hpb=b2bebff5bd5d111bb469de032d9b878d95f3c033 diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 5c062c5fac..55d4bd0db8 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -114,7 +114,8 @@ float current_player; HUD_PANEL(ENGINEINFO , HUD_EngineInfo , engineinfo) \ HUD_PANEL(INFOMESSAGES , HUD_InfoMessages , infomessages) \ HUD_PANEL(PHYSICS , HUD_Physics , physics) \ - HUD_PANEL(CENTERPRINT , HUD_CenterPrint , centerprint) + HUD_PANEL(CENTERPRINT , HUD_CenterPrint , centerprint) \ + HUD_PANEL(BUFFS , HUD_Buffs , buffs) #define HUD_PANEL(NAME,draw_func,name) \ float HUD_PANEL_##NAME; \ @@ -337,14 +338,16 @@ panel_bg_border_str = cvar_string(strcat("hud_panel_", panel.panel_name, "_bg_bo HUD_Panel_GetBorder() \ } ENDS_WITH_CURLY_BRACE +#define NOTIFY_MAX_ENTRIES 10 +#define NOTIFY_ICON_MARGIN 0.02 -#define KN_MAX_ENTRIES 10 +float notify_index; +float notify_count; +float notify_times[NOTIFY_MAX_ENTRIES]; +string notify_attackers[NOTIFY_MAX_ENTRIES]; +string notify_victims[NOTIFY_MAX_ENTRIES]; +string notify_icons[NOTIFY_MAX_ENTRIES]; -float kn_index; -float notify_times[KN_MAX_ENTRIES]; -string notify_icon[KN_MAX_ENTRIES]; -string notify_attackers[KN_MAX_ENTRIES]; -string notify_victims[KN_MAX_ENTRIES]; void HUD_Notify_Push(string icon, string attacker, string victim); var void HUD_ModIcons_GameType(vector pos, vector size);