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"
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));
}