From 88c94ee8411060da97bf4d2b7a0aabb349333fbe Mon Sep 17 00:00:00 2001 From: Andre Mohren Date: Wed, 25 Oct 2017 22:56:29 +0200 Subject: [PATCH] Allow remaining time to be hidden in ProductionPaletteWidget. --- OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs b/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs index f6ced3d29e..cd865e7b1e 100644 --- a/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs @@ -64,6 +64,8 @@ namespace OpenRA.Mods.Common.Widgets public readonly string NotBuildableSequence = "idle"; public readonly string NotBuildablePalette = "chrome"; + public readonly bool DrawTime = true; + [Translate] public readonly string ReadyText = ""; [Translate] public readonly string HoldText = ""; @@ -466,7 +468,7 @@ namespace OpenRA.Mods.Common.Widgets overlayFont.DrawTextWithContrast(HoldText, icon.Pos + holdOffset, Color.White, Color.Black, 1); - else if (!waiting) + else if (!waiting && DrawTime) overlayFont.DrawTextWithContrast(WidgetUtils.FormatTime(first.RemainingTimeActual, World.Timestep), icon.Pos + timeOffset, Color.White, Color.Black, 1);