From: terencehill Date: Fri, 29 Mar 2013 16:02:59 +0000 (+0100) Subject: hud_panel_update_interval 2 "how often (in seconds) common panel cvars are reloaded" X-Git-Tag: xonotic-v0.7.0~62^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f57bf377f08a6344d05713945a5503dc6e72670;p=xonotic%2Fxonotic-data.pk3dir.git hud_panel_update_interval 2 "how often (in seconds) common panel cvars are reloaded" --- diff --git a/_hud_common.cfg b/_hud_common.cfg index ca90bc9da..15453b7dc 100644 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@ -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" diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index ba6abadc0..555994d73 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -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; diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index c8c813e66..982042851 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -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; \