X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud.qh;h=db27a488f596218e091fc3cb2c4e5d2b245f9d12;hb=99e4fa0264127dfcf4675d5f645061b51af815e4;hp=16ccd0c79c0d33aea202eaa3d7c2aab7b4b2721f;hpb=c6c371883dde697e1f237d498c08e09788b6af6b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 16ccd0c79..db27a488f 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -3,6 +3,7 @@ string hud_panelorder_prev; float hud_draw_maximized; float hud_panel_radar_maximized; +float hud_panel_itemstime; vector mousepos; vector panel_click_distance; // mouse cursor distance from the top left corner of the panel (saved only upon a click) @@ -15,12 +16,6 @@ const float BORDER_MULTIPLIER = 0.25; float scoreboard_bottom; float weapon_accuracy[WEP_MAXCOUNT]; -#define MAX_ACCURACY_LEVELS 10 -float acc_lev[MAX_ACCURACY_LEVELS]; -vector acc_col[MAX_ACCURACY_LEVELS]; -float acc_levels; -string acc_color_levels; - float complain_weapon; string complain_weapon_name; float complain_weapon_type; @@ -52,6 +47,7 @@ float menu_enabled_time; float hud_fade_alpha; string hud_skin_path; +string hud_skin_prev; var vector progressbar_color; @@ -287,6 +283,7 @@ switch(id) { \ case HUD_PANEL_INFOMESSAGES: HUD_Panel_UpdateCvars(infomessages) break; \ case HUD_PANEL_PHYSICS: HUD_Panel_UpdateCvars(physics); break;\ case HUD_PANEL_CENTERPRINT: HUD_Panel_UpdateCvars(centerprint); break;\ + case HUD_PANEL_ITEMSTIME: HUD_Panel_UpdateCvars(itemstime); break;\ } #define HUD_Panel_UpdateCvarsForId(id) \ @@ -325,6 +322,7 @@ switch(id) { \ case HUD_PANEL_INFOMESSAGES: HUD_Panel_UpdatePosSize(infomessages) break;\ case HUD_PANEL_PHYSICS: HUD_Panel_UpdatePosSize(physics); break;\ case HUD_PANEL_CENTERPRINT: HUD_Panel_UpdatePosSize(centerprint); break;\ + case HUD_PANEL_ITEMSTIME: HUD_Panel_UpdatePosSize(itemstime); break;\ } #define HUD_Panel_UpdatePosSizeForId(id) \ @@ -345,3 +343,12 @@ switch(id) { \ case HUD_PANEL_ENGINEINFO: HUD_Panel_UpdatePosSize(engineinfo) break;\ default: HUD_Panel_UpdatePosSizeForId_Part2(id)\ } + +#define KN_MAX_ENTRIES 10 + +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);