From: terencehill Date: Sun, 14 Aug 2016 09:30:33 +0000 (+0200) Subject: Scoreboard: provide basic panel cvars to old clients X-Git-Tag: xonotic-v0.8.2~716^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=049506acb232778b3d665c4abf13f0fd63cd4709;p=xonotic%2Fxonotic-data.pk3dir.git Scoreboard: provide basic panel cvars to old clients --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 054810c39..e4d970c24 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -835,7 +835,7 @@ seta scoreboard_columns default // keep old scoreboard cvars for compatibility's sake // they've been replaced by hud_panel_scoreboard_* cvars -// TODO removed them after a future release (0.8.2+) +// TODO remove them after a future release (0.8.2+) seta scoreboard_border_thickness 1 "scoreboard border thickness" seta scoreboard_accuracy_border_thickness 1 "accuracy stats border thickness" seta scoreboard_accuracy_doublerows 0 "use two rows instead of one" diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index ca0bd0633..e725878a3 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -15,6 +15,17 @@ bool sbt_highlight; float sbt_highlight_alpha; float sbt_highlight_alpha_self; +// provide basic panel cvars to old clients +// TODO remove them after a future release (0.8.2+) +string autocvar_hud_panel_scoreboard_pos = "0.150000 0.150000"; +string autocvar_hud_panel_scoreboard_size = "0.700000 0.700000"; +string autocvar_hud_panel_scoreboard_bg = "border_default"; +string autocvar_hud_panel_scoreboard_bg_color = "0 0.3 0.5"; +string autocvar_hud_panel_scoreboard_bg_color_team = ""; +string autocvar_hud_panel_scoreboard_bg_alpha = "0.7"; +string autocvar_hud_panel_scoreboard_bg_border = ""; +string autocvar_hud_panel_scoreboard_bg_padding = ""; + float autocvar_hud_panel_scoreboard_fadeinspeed = 10; float autocvar_hud_panel_scoreboard_fadeoutspeed = 5; float autocvar_hud_panel_scoreboard_respawntime_decimals = 1;