diff Widgets/UnitDisplayWidget.cs @ 64:e3fe48c4d794

Re #60: Add UI to add/remove/edit weapons in GTK * Add most of basic "edit" interface, based on "add" interface TODO: * Set initial values * Warn when setting to 0
author IBBoard <dev@ibboard.co.uk>
date Thu, 02 Sep 2010 20:12:21 +0000
parents 04c0f6a7625c
children 77448375d2f9
line wrap: on
line diff
--- a/Widgets/UnitDisplayWidget.cs	Mon Aug 30 19:44:35 2010 +0000
+++ b/Widgets/UnitDisplayWidget.cs	Thu Sep 02 20:12:21 2010 +0000
@@ -272,5 +272,19 @@
 				stack.Execute(cmd);
 			}
 		}		
+		
+		protected virtual void HandleEditButtonClicked(object sender, System.EventArgs e)
+		{
+			UnitEquipmentItem item = GetSelectedEquipmentItem();
+			log.Debug("Edit " + item);
+			
+			if (item != null)
+			{
+				EditEquipmentUIControl editEquipment = new EditEquipmentUIControl(unit, item, stack);
+				editEquipment.Show();
+			}
+		}
+		
+		
 	}
 }