diff FrmUnit.cs @ 190:1ca23c47345a

Re #327: Point names used in the GUI
author snowblizz
date Mon, 24 Jan 2011 16:50:31 +0000
parents 97fd4b6f823b
children eaa7b639d390
line wrap: on
line diff
--- a/FrmUnit.cs	Sun Dec 12 17:30:53 2010 +0000
+++ b/FrmUnit.cs	Mon Jan 24 16:50:31 2011 +0000
@@ -47,7 +47,13 @@
 		private TextBox notes;
 		private ListBox abilitiesList;
 		private IBBLabel lblAbilities;
-		private FlowLayoutPanel statsPanel;
+		private FlowLayoutPanel statsPanel;
+        public GameSystem CurrentGameSystem
+        {
+            get { return WarFoundryCore.CurrentGameSystem; }
+            set { WarFoundryCore.CurrentGameSystem = value; }
+        }
+
 		/// <summary>
 		/// Required designer variable.
 		/// </summary>
@@ -101,7 +107,7 @@
 
 		private void SetPointsValueText()
 		{
-			lblPoints.Text = "(" + unit.Points + " pts)";
+            lblPoints.Text = Translation.GetTranslation("FrmUnitlblPoints", "(" + unit.Points + " pts)", unit.Points, CurrentGameSystem.UsePointsAbbrev(unit.Points));
 		}
 
 		private void SetStats()