From: MirceaKitsune Date: Thu, 14 Apr 2011 22:06:24 +0000 (+0300) Subject: Draw a clock icon in the timer on the HUD X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=274f21708a043299e99ec9b5c41f50e86502d7a9;p=voretournament%2Fvoretournament.git Draw a clock icon in the timer on the HUD --- diff --git a/data/gfx/hud/sb_time.tga b/data/gfx/hud/sb_time.tga new file mode 100644 index 00000000..31323d47 Binary files /dev/null and b/data/gfx/hud/sb_time.tga differ diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 10b750e6..4c36830f 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -1959,11 +1959,12 @@ void Sbar_Timer() } } + drawpic(topright - ('19 0 0' + '3 0 0' - '0 2 0'), "gfx/hud/sb_time", '22 22 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); if(minutesLeft >= 1 || cvar("sbar_increment_maptime") || timelimit == 0 || warmup_stage) { - Sbar_DrawXNum(topright - ('44 -2 0' - '0 2 0') - (strlen(ftos(minutes)) * 18 * scale * '0.5 0 0'), minutes, 3, 0, 18 * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); - drawstring(topright - ('42 -2 0' - '0 1 0'), ":", '18 18 0' * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); + Sbar_DrawXNum(topright - ('50 -2 0' - '0 2 0') - (strlen(ftos(minutes)) * 18 * scale * '0.5 0 0'), minutes, 3, 0, 18 * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); + drawstring(topright - ('48 -2 0' - '0 1 0'), ":", '18 18 0' * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); } - Sbar_DrawXNum(topright - ('31 -2 0' + '3 0 0' - '0 2 0'), seconds, -2, 0, 18 * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); + Sbar_DrawXNum(topright - ('37 -2 0' + '3 0 0' - '0 2 0'), seconds, -2, 0, 18 * scale, timer_color, sbar_alpha_fg, DRAWFLAG_NORMAL); } void CSQC_Strength_Timer() {