diff UIControl/AddEquipmentUIControl.cs @ 55:eb7db8495bb5

Re #60: Add UI to add/remove/edit weapons in GTK * Make some manual changes to the Steic-generated file until MonoDevelop bug 634447 is resolved * Add logging to UI * Make control close once we're done with it * Set values for equipment controls
author IBBoard <dev@ibboard.co.uk>
date Wed, 25 Aug 2010 19:51:23 +0000
parents 28b242612ad7
children 0c5fbb54bfb0
line wrap: on
line diff
--- a/UIControl/AddEquipmentUIControl.cs	Wed Aug 25 16:01:12 2010 +0000
+++ b/UIControl/AddEquipmentUIControl.cs	Wed Aug 25 19:51:23 2010 +0000
@@ -47,6 +47,8 @@
 			int minNumber = UnitEquipmentUtil.GetMinEquipmentCount(unit, equip);
 			minNumber = Math.Max(0, minNumber);
 			
+			ui.SetUnitEquipmentLimits(equipIsRatioLimit, minPercent, maxPercent, minNumber, maxNumber);
+			
 		}
 		
 		private double RoundPercentage(double percent)
@@ -54,7 +56,6 @@
 			return Math.Round(percent, 1);
 		}
 		
-		//TODO Make abstract
 		public void Show()
 		{
 			ui.ShowControl();