]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvar the color fading speed too
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 10:18:27 +0000 (13:18 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 10:18:27 +0000 (13:18 +0300)
data/defaultVoretournament.cfg
data/qcsrc/client/sbar.qc

index ee80769c2257edbc9a2be6b676614289fef78c79..d65e6ca06aeabddb7b92cfba8391381183492ffb 100644 (file)
@@ -1125,6 +1125,7 @@ seta sbar_scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on sba
 seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value"\r
 seta sbar_stomachboard_status_brightness 0.5 "brightness of the stomach board status"\r
 seta sbar_stomachboard_status_alpha 0.75 "alpha of the stomach board status"\r
+seta sbar_stomachboard_status_fade 0.0125 "color fading speed of the stomach board status"\r
 seta sbar_stomachboard_highlight_brightness 0.5 "brightness of the stomach board highlight"\r
 seta sbar_stomachboard_highlight_alpha 0.25 "alpha of the stomach board highlight"\r
 seta sbar_timer_increment 0 "1 = show elapsed time on the timer"\r
index 06fdcc215af57ad6d1d7d99c80c848316fe5af96..feba5f95488b7357ef97d8752e6558ea2127d255 100644 (file)
@@ -2629,7 +2629,7 @@ vector colortrans_current;
 vector Stomachstatus_Colortrans(vector target_color)\r
 {\r
        local float step;\r
-       step = 0.0125;\r
+       step = cvar("sbar_stomachboard_status_fade");\r
 \r
        if(colortrans_current_x > target_color_x + step)\r
                colortrans_current_x -= step;\r