]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Display an icon for the power fail menu. Currently the armor icon
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 20:07:15 +0000 (22:07 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 20:07:15 +0000 (22:07 +0200)
data/gfx/hud/sb_power_fail_icon.tga [new file with mode: 0644]
data/qcsrc/client/sbar.qc

diff --git a/data/gfx/hud/sb_power_fail_icon.tga b/data/gfx/hud/sb_power_fail_icon.tga
new file mode 100644 (file)
index 0000000..997bc54
Binary files /dev/null and b/data/gfx/hud/sb_power_fail_icon.tga differ
index c3de1032e2cc53144f7907f6cee1c8585d0328e8..48e52cc997caed66732047ece1ae07332d771486 100644 (file)
@@ -3082,10 +3082,11 @@ void Sbar_Draw (void)
                if(getstati(STAT_ARMOR) < g_power)\r
                {\r
                        vector warn_pos;\r
-                       warn_pos_x = vid_conwidth / 2 - 128;\r
+                       warn_pos_x = vid_conwidth / 2;\r
                        warn_pos_y = vid_conheight - vid_conheight / 2.5;\r
 \r
-                       drawpic(warn_pos, "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                       drawpic(warn_pos - '128 0 0', "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                       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);\r
 \r
                        return;\r
                }\r