From: FruitieX Date: Sun, 16 May 2010 18:15:51 +0000 (+0300) Subject: always draw enabled panels in config mode X-Git-Tag: xonotic-v0.1.0preview~541^2~152 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d9e82f7aa52c6b208a57d5d87c08b1bfdca64c1;p=xonotic%2Fxonotic-data.pk3dir.git always draw enabled panels in config mode --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 52583e584..e53c10e98 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -2982,8 +2982,11 @@ void HUD_Mod_Race(vector pos, vector mySize) drawfont = hud_font; } +// TODO: idea: alpha fade in/out empty panels void HUD_ModIcons(void) { + if (gametype != GAME_KEYHUNT && gametype != GAME_CTF && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && !hud_configure) + return; float id = 10; vector pos, mySize; pos = HUD_Panel_GetPos(id); @@ -3189,11 +3192,11 @@ void HUD_Main (void) HUD_RaceTimer(); if(HUD_Panel_CheckActive(9)) HUD_VoteWindow(); - if(HUD_Panel_CheckActive(9)) + if(HUD_Panel_CheckActive(10)) HUD_ModIcons(); // TODO hud'ify if(HUD_Panel_CheckActive(11)) - if(spectatee_status > 0 || cvar("cl_showpressedkeys") >= 2 || hud_configure) + if(spectatee_status > 0 || cvar("hud_pressedkeys") >= 2 || hud_configure) HUD_DrawPressedKeys(); // TODO hud_'ify these