]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
allow for a fullscreen dock image to be drawn behind the panels
authorFruitieX <rasse@rasse-lappy.localdomain>
Thu, 13 May 2010 07:36:50 +0000 (10:36 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Thu, 13 May 2010 07:36:50 +0000 (10:36 +0300)
defaultXonotic.cfg
qcsrc/client/hud.qc

index bf36d94bb6e8c145c9b1feb331f9b5dd2b7718a5..f1237285639885aae0ebdf94bc29d2e9bc4d9fb7 100644 (file)
@@ -1336,6 +1336,10 @@ seta hud_bg_alpha 0.8 "alpha of the background"
 seta hud_bg_border 10 "sets the default border size for the panels"
 seta hud_fg_alpha 1 "alpha of the foreground"
 
+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"
+
 seta sbar_info_pos 50
 
 seta hud_hudselector 1 "0 = health/armor positions flipped, 1 = default hud layout, 2 = combined health and armor display"
index 4493d7bc1029fa35207e5cfec9df636e46172538..e828ac1dd52732effec95b99fa8880fbf5e1f24a 100644 (file)
@@ -2835,6 +2835,9 @@ void HUD_Main (void)
        hud_fontsize = HUD_GetFontsize("hud_fontsize");
        hud_fontsize_spec = HUD_GetFontsize("hud_fontsize_spec");
 
+       if(cvar_string("hud_dock") != "0")
+               drawpic('0 0 0', strcat("gfx/hud/", cvar_string("hud_dock")), eX * vid_conwidth + eY * vid_conheight, stov(cvar_string("hud_dock_color")), cvar("hud_dock_alpha"), DRAWFLAG_NORMAL);
+
        if(HUD_Panel_CheckActive(0))
                HUD_WeaponIcons();
        if(HUD_Panel_CheckActive(1))