From: z411 Date: Fri, 4 Mar 2022 21:47:55 +0000 (-0300) Subject: Add subtimer vertical padding X-Git-Tag: xonotic-v0.8.5~177^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca5733b13f8a030064eeae6e0077d9e8698bedda;p=xonotic%2Fxonotic-data.pk3dir.git Add subtimer vertical padding --- diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 31468b152..93da240ea 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -147,8 +147,9 @@ void HUD_Timer() HUD_Panel_DrawBg(); if(subtimer) { + float subtimer_padding = subtimer_size.y / 5; timer_size.x -= subtimer_size.x; - drawstring_aspect(pos + eX * timer_size.x, (swap ? timer : subtimer), subtimer_size, (swap ? timer_color : subtimer_color), panel_fg_alpha, DRAWFLAG_NORMAL); + drawstring_aspect(pos + eX * timer_size.x + eY * subtimer_padding, (swap ? timer : subtimer), subtimer_size - eY * subtimer_padding * 2, (swap ? timer_color : subtimer_color), panel_fg_alpha, DRAWFLAG_NORMAL); } drawstring_aspect(pos, (swap ? subtimer : timer), timer_size, (swap ? subtimer_color : timer_color), panel_fg_alpha, DRAWFLAG_NORMAL);