From: MirceaKitsune Date: Tue, 15 Nov 2011 20:07:15 +0000 (+0200) Subject: Display an icon for the power fail menu. Currently the armor icon X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf09b158bd1a03e68a8a2931a8640fc2d0eddc41;p=voretournament%2Fvoretournament.git Display an icon for the power fail menu. Currently the armor icon --- diff --git a/data/gfx/hud/sb_power_fail_icon.tga b/data/gfx/hud/sb_power_fail_icon.tga new file mode 100644 index 00000000..997bc545 Binary files /dev/null and b/data/gfx/hud/sb_power_fail_icon.tga differ diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index c3de1032..48e52cc9 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3082,10 +3082,11 @@ void Sbar_Draw (void) if(getstati(STAT_ARMOR) < g_power) { vector warn_pos; - warn_pos_x = vid_conwidth / 2 - 128; + warn_pos_x = vid_conwidth / 2; warn_pos_y = vid_conheight - vid_conheight / 2.5; - drawpic(warn_pos, "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + drawpic(warn_pos - '128 0 0', "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_fail_icon", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); return; }