From: FruitieX <rasse@rasse-lappy.localdomain>
Date: Sat, 15 May 2010 11:54:15 +0000 (+0300)
Subject: remove the timer icon, it's often only in the way. designer can place it on their... 
X-Git-Tag: xonotic-v0.1.0preview~541^2~159
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=88e3050a32993b9354824c5fe3b06d3de779d018;p=xonotic%2Fxonotic-data.pk3dir.git

remove the timer icon, it's often only in the way. designer can place it on their dock instead if they want it
---

diff --git a/gfx/hud/old/timer.tga b/gfx/hud/old/timer.tga
deleted file mode 100644
index 4d7ec70afc..0000000000
Binary files a/gfx/hud/old/timer.tga and /dev/null differ
diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc
index 5ee2b66086..e5b7eb00bb 100644
--- a/qcsrc/client/hud.qc
+++ b/qcsrc/client/hud.qc
@@ -644,7 +644,7 @@ vector HUD_Panel_CheckLimitSize(float id, vector mySize)
 		//	mySize_x = max(mySize_y * 2, mySize_x); // at least 2 * height
 		//	break;
 		case 5: 
-			mySize_x = max(mySize_y * 2, mySize_x); // at least 2 * height
+			mySize_y = (1/4.1) * mySize_x; // 1/4.1 * width, trial and error...
 			break;
 		case 7: 
 			mySize_y = (1/4) * mySize_x; // 1/4 * width
@@ -1996,32 +1996,14 @@ void HUD_Timer()
 		seconds = secondsLeft;
 	}
 
-	if(mySize_x/mySize_y > 5.1)
-	{
-		if(minutes > 999)
-			seconds = 99;
-		minutes = min(minutes, 999);
-		if(minutesLeft >= 1 || cvar("hud_timer_increment") || timelimit == 0 || warmup_stage) {
-			if(minutes < 100)
-				drawpic_skin(pos + eX * mySize_x - eX * 5.1 * mySize_y, "timer", '1 1 0' * mySize_y, timer_color, hud_alpha_fg, DRAWFLAG_NORMAL);
-			HUD_DrawXNum(pos + eX * mySize_x - eX * 5.1 * mySize_y, minutes, 3, 0, mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
-			drawpic_skin(pos + eX * mySize_x - eX * 2.57 * mySize_y, "num_colon", '1 1 0' * mySize_y, timer_color, hud_alpha_fg, DRAWFLAG_NORMAL);
-		}
-		HUD_DrawXNum(pos + eX * mySize_x - eX * 2 * mySize_y, seconds, -2, 0, mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
-	}
-	else
-	{
-		if(minutes > 99)
-			seconds = 99;
-		minutes = min(minutes, 99);
-		if(minutesLeft >= 1 || cvar("hud_timer_increment") || timelimit == 0 || warmup_stage) {
-			if(minutes < 100)
-				drawpic_skin(pos + eX * 0.5 * mySize_x - eX * 0.5 * 0.5 * mySize_y, "timer", '0.5 0.5 0' * mySize_y, timer_color, hud_alpha_fg, DRAWFLAG_NORMAL);
-			HUD_DrawXNum(pos + eX * 0.5 * mySize_x - eX * mySize_y + eY * 0.5 * mySize_y, minutes, -2, 0, 0.5 * mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
-			drawpic_skin(pos + eX * 0.5 * mySize_x - eX * 0.5 * 0.5 * mySize_y + eY * 0.5 * mySize_y, "num_colon", '0.5 0.5 0' * mySize_y, timer_color, hud_alpha_fg, DRAWFLAG_NORMAL);
-		}
-		HUD_DrawXNum(pos + eX * 0.51 * mySize_x + eY * 0.5 * mySize_y, seconds, -2, 0, 0.5 * mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
+	if(minutes > 999)
+		seconds = 99;
+	minutes = min(minutes, 999);
+	if(minutesLeft >= 1 || cvar("hud_timer_increment") || timelimit == 0 || warmup_stage) {
+		HUD_DrawXNum(pos + eX * mySize_x - eX * 5.1 * mySize_y, minutes, 3, 0, mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
+		drawpic_skin(pos + eX * mySize_x - eX * 2.57 * mySize_y, "num_colon", '1 1 0' * mySize_y, timer_color, hud_alpha_fg, DRAWFLAG_NORMAL);
 	}
+	HUD_DrawXNum(pos + eX * mySize_x - eX * 2 * mySize_y, seconds, -2, 0, mySize_y, timer_color, 0, 0, hud_alpha_fg, DRAWFLAG_NORMAL);
 }
 
 // Radar (#6)