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"
+seta hud_configure_checkcollisions 1 "check for collisions against other panels when in hud configure mode"
+seta hud_configure_bg_minalpha 0.5 "minimum panel background alpha when in hud configure mode"
+
seta hud_dock 0 "overlay the whole screen with this dock background, 0 = disable"
seta hud_dock_color "0 0.7 0.8" "dock color"
seta hud_dock_alpha 0.8 "alpha of the dock"
myPos = HUD_Panel_GetPos(id);
// check for collisions
- mySize = HUD_Panel_CheckResize(id, HUD_Panel_GetPos(id), mySize);
+ if(cvar("hud_configure_checkcollisions"))
+ mySize = HUD_Panel_CheckResize(id, HUD_Panel_GetPos(id), mySize);
mySize_x = bound(0.025 * vid_conwidth, mySize_x, vid_conwidth - myPos_x);
mySize_y = bound(0.025 * vid_conheight, mySize_y, vid_conheight - myPos_y);
vector mySize;
mySize = HUD_Panel_GetSize(id);
- pos = HUD_Panel_CheckMove(id, pos, mySize);
+ if(cvar("hud_configure_checkcollisions"))
+ pos = HUD_Panel_CheckMove(id, pos, mySize);
pos_x = bound(0, pos_x, vid_conwidth - mySize_x);
pos_y = bound(0, pos_y, vid_conheight - mySize_y);