]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
force min alpha value in hud configure mode so you can see the panels
authorFruitieX <rasse@rasse-lappy.localdomain>
Thu, 13 May 2010 07:44:15 +0000 (10:44 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Thu, 13 May 2010 07:44:15 +0000 (10:44 +0300)
defaultXonotic.cfg
qcsrc/client/hud.qc

index f1237285639885aae0ebdf94bc29d2e9bc4d9fb7..979df639f2a87974a763aa3085cf23026852847e 100644 (file)
@@ -1333,6 +1333,7 @@ seta hud_progressbar_alpha "0.5" "alpha of progressbars"
 seta hud_bg "border" "sets the default background for the panels, file must exist in data/gfx/hud/. 0 = disable background by default"
 seta hud_bg_color "0 0.7 0.8" "sets the default background color for the panels"
 seta hud_bg_alpha 0.8 "alpha of the background"
+seta hud_configure_bg_minalpha 0.5 "minimum panel background alpha when in hud configure mode"
 seta hud_bg_border 10 "sets the default border size for the panels"
 seta hud_fg_alpha 1 "alpha of the foreground"
 
index e828ac1dd52732effec95b99fa8880fbf5e1f24a..8cd8794a9672d6be23c682cde9fee8f5aee57f45 100644 (file)
@@ -652,6 +652,8 @@ void HUD_Panel_DrawBg(float id, vector pos, vector mySize)
                alpha = cvar(strcat("hud_", HUD_Panel_GetName(id), "_bg_alpha"));
                if(!alpha)
                        alpha = cvar("hud_bg_alpha");
+               if(cvar("_hud_configure"))
+                       alpha = max(cvar("hud_configure_bg_minalpha"), alpha);
 
                draw_BorderPicture(pos - '1 1 0' * border, strcat("gfx/hud/", bg), mySize + '1 1 0' * 2 * border, color, alpha, '1 1 0' * (border/BORDER_MULTIPLIER));
        }