From: MirceaKitsune Date: Tue, 15 Nov 2011 20:42:08 +0000 (+0200) Subject: Message and icon for rebooting X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=53b85c646c002b418ad08fca9ce6e155173d2da5;p=voretournament%2Fvoretournament.git Message and icon for rebooting --- diff --git a/data/gfx/hud/sb_power_reboot.tga b/data/gfx/hud/sb_power_reboot.tga new file mode 100644 index 00000000..c4bc3d52 Binary files /dev/null and b/data/gfx/hud/sb_power_reboot.tga differ diff --git a/data/gfx/hud/sb_power_reboot_icon.tga b/data/gfx/hud/sb_power_reboot_icon.tga new file mode 100644 index 00000000..2437b974 Binary files /dev/null and b/data/gfx/hud/sb_power_reboot_icon.tga differ diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index ec49dc45..a7c6e570 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3082,11 +3082,11 @@ void Sbar_Draw (void) if(getstati(STAT_HEALTH) > 0) { + vector warn_pos; + warn_pos_x = vid_conwidth / 2; + warn_pos_y = vid_conheight - vid_conheight / 2.5; if(getstati(STAT_ARMOR) < g_power) { - vector warn_pos; - warn_pos_x = vid_conwidth / 2; - warn_pos_y = vid_conheight - vid_conheight / 2.5; drawpic(warn_pos - '128 0 0', "gfx/hud/sb_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 * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL); @@ -3095,6 +3095,9 @@ void Sbar_Draw (void) } else if(time < power_boot) { + drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_reboot", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_reboot_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL); + return; } } diff --git a/misc/source/media/hud/psd/sb_power_reboot.psd b/misc/source/media/hud/psd/sb_power_reboot.psd new file mode 100644 index 00000000..480bf431 Binary files /dev/null and b/misc/source/media/hud/psd/sb_power_reboot.psd differ