From: FruitieX Date: Thu, 13 May 2010 07:36:50 +0000 (+0300) Subject: allow for a fullscreen dock image to be drawn behind the panels X-Git-Tag: xonotic-v0.1.0preview~541^2~184 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f4cbda733a7d08211eea5f3140bc5db4823d09e0;p=xonotic%2Fxonotic-data.pk3dir.git allow for a fullscreen dock image to be drawn behind the panels --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index bf36d94bb..f12372856 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -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" diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 4493d7bc1..e828ac1dd 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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))