From c62e025c45bcb242654d8199700760f287e5652f Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 2 Mar 2011 22:20:34 +1300 Subject: [PATCH] add temp hacked ProductionBar -- not wired to ProductionQueue properly yet. --- OpenRA.Mods.RA/OpenRA.Mods.RA.csproj | 1 + OpenRA.Mods.RA/ProductionBar.cs | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 OpenRA.Mods.RA/ProductionBar.cs diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 1bb7c793cf..5e591a39f3 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -60,6 +60,7 @@ + diff --git a/OpenRA.Mods.RA/ProductionBar.cs b/OpenRA.Mods.RA/ProductionBar.cs new file mode 100644 index 0000000000..ab2b162d29 --- /dev/null +++ b/OpenRA.Mods.RA/ProductionBar.cs @@ -0,0 +1,24 @@ +#region Copyright & License Information +/* + * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see COPYING. + */ +#endregion + +using System.Drawing; +using OpenRA.Traits; + +namespace OpenRA.Mods.RA +{ + class ProductionBarInfo : TraitInfo { } + + class ProductionBar : ISelectionBar + { + public float GetValue() { return .5f; } + + public Color GetColor() { return Color.CadetBlue; } + } +}