-
- if(warmup_stage)
- timer_sub = "Warmup";
- else if(overtimes == 1)
- timer_sub = "Overtime";
- else if (overtimes > 1)
- timer_sub = sprintf("Overtime #%d", overtimes);
-
- drawstring_aspect(pos, seconds_tostring(timer), mySize, timer_color, panel_fg_alpha, DRAWFLAG_NORMAL);
-
- if(timer_sub != "") {
- pos.y += mySize.y;
- mySize.y = mySize.y / 2;
- drawstring_aspect(pos, timer_sub, mySize, '1 0 0', panel_fg_alpha, DRAWFLAG_NORMAL);
+
+ // Subtext
+ int overtimes = STAT(OVERTIMES);
+
+ if(warmup_stage || autocvar__hud_configure)
+ subtext = _("Warmup");
+ else if(STAT(TIMEOUT_STATUS) == 2)
+ subtext = _("Timeout");
+ else if(overtimes >= 2)
+ subtext = sprintf(_("Overtime #%d"), overtimes);
+ else if(overtimes != 0)
+ subtext = _("Overtime");
+
+ subtext_size = vec2(mySize.x, mySize.y / 3);
+ timer_size = vec2(mySize.x, mySize.y - subtext_size.y);
+ subtimer_size = vec2(mySize.x / 3, mySize.y - subtext_size.y);
+ timer_str = seconds_tostring(timer);
+
+ panel_size.y -= subtext_size.y;
+ HUD_Panel_DrawBg();
+
+ if(subtimer_str) {
+ float subtimer_padding = subtimer_size.y / 5;
+ timer_size.x -= subtimer_size.x;
+ drawstring_aspect(pos + eX * timer_size.x + eY * subtimer_padding, (swap ? timer_str : subtimer_str), subtimer_size - eY * subtimer_padding * 2, (swap ? timer_color : subtimer_color), panel_fg_alpha, DRAWFLAG_NORMAL);