diff Util/UnitEquipmentChoice.cs @ 190:1ca23c47345a

Re #327: Point names used in the GUI
author snowblizz
date Mon, 24 Jan 2011 16:50:31 +0000
parents 3e78af88ceb3
children eaa7b639d390
line wrap: on
line diff
--- a/Util/UnitEquipmentChoice.cs	Sun Dec 12 17:30:53 2010 +0000
+++ b/Util/UnitEquipmentChoice.cs	Mon Jan 24 16:50:31 2011 +0000
@@ -6,6 +6,7 @@
 using IBBoard.Lang;
 using IBBoard.WarFoundry.API.Objects;
 using IBBoard.WarFoundry.API.Util;
+using IBBoard.WarFoundry.API;
 
 namespace IBBoard.WarFoundry.GUI.WinForms.Util
 {
@@ -17,6 +18,11 @@
     {
         private Unit unit;
 		private UnitEquipmentItem item;
+        public GameSystem CurrentGameSystem
+        {
+            get { return WarFoundryCore.CurrentGameSystem; }
+            set { WarFoundryCore.CurrentGameSystem = value; }
+        }
 
         public UnitEquipmentChoice(Unit unit, UnitEquipmentItem unitItem)
         {
@@ -34,7 +40,7 @@
 			}
 			else
 			{
-				translation = Translation.GetTranslation("equipmentAmountWithCost", "{0} ({1} at {2}pts each)", item.Name, GetAmountString(), item.Cost);
+                translation = Translation.GetTranslation("equipmentAmountWithCost", "{0} ({1} at {2}pts each)", item.Name, GetAmountString(), item.Cost, CurrentGameSystem.UsePointsAbbrev(item.Cost));
 			}
 
 			return translation;