]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hud_panel_update_interval 2 "how often (in seconds) common panel cvars are reloaded"
authorterencehill <piuntn@gmail.com>
Fri, 29 Mar 2013 16:02:59 +0000 (17:02 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 29 Mar 2013 16:02:59 +0000 (17:02 +0100)
_hud_common.cfg
qcsrc/client/autocvars.qh
qcsrc/client/hud.qh

index ca90bc9da204f14dc8af7cf536336699cb230363..15453b7dcc018bbc8148b938a782d2717020cd27 100644 (file)
@@ -44,6 +44,8 @@ alias -hud_panel_radar_maximized "cl_cmd hud radar 0"
 alias hud_panel_radar_maximized "cl_cmd hud radar"
 
 // other hud cvars
+seta hud_panel_update_interval 2 "how often (in seconds) common panel cvars are reloaded"
+
 seta hud_showbinds 1   "what to show in the HUD to indicate certain keys to press: 0 display commands, 1 bound keys, 2 both"
 seta hud_showbinds_limit 2     "maximum number of bound keys to show for a command. 0 for unlimited"
 set _hud_showbinds_reload 0    "set it to 1 to reload binds if you changed any. It is reset to 0 automatically"
index ba6abadc018868762228d1875b5180244fe9ce2a..555994d73bd5871011a4861028f080a9cf930a4c 100644 (file)
@@ -298,6 +298,7 @@ float autocvar_hud_panel_score;
 float autocvar_hud_panel_score_rankings;
 float autocvar_hud_panel_timer;
 float autocvar_hud_panel_timer_increment;
+float autocvar_hud_panel_update_interval;
 float autocvar_hud_panel_vote;
 float autocvar_hud_panel_vote_alreadyvoted_alpha;
 string autocvar_hud_panel_vote_bg_alpha;
index c8c813e6674a9264634c5ef123cd546b0fc469c1..982042851c7b4603e1cf498a59711abce9fe6cf3 100644 (file)
@@ -342,7 +342,7 @@ if(panel.update_time < time) { \
        panel.current_panel_bg_color_team = panel_bg_color_team; \
        panel.current_panel_bg_padding = panel_bg_padding; \
        panel.current_panel_fg_alpha = panel_fg_alpha; \
-       panel.update_time = (autocvar__hud_configure) ? time : time + 2; \
+       panel.update_time = (autocvar__hud_configure) ? time : time + autocvar_hud_panel_update_interval; \
 } else { \
        panel_pos = panel.current_panel_pos; \
        panel_size = panel.current_panel_size; \