Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff UIControl/AddEquipmentUIControl.cs @ 68:7028e24b67ec
Re #60: Add UI to add/remove/edit weapons in GTK
* Add "Replace" dialog
Note: Dialog null refs because of a bad assumption in the base class - base constructor calls SetupUI before Replace constructor has set all of its values
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 03 Nov 2010 21:02:54 +0000 |
parents | 100626381159 |
children | 4b82515586ac |
line wrap: on
line diff
--- a/UIControl/AddEquipmentUIControl.cs Sat Oct 30 14:30:29 2010 +0000 +++ b/UIControl/AddEquipmentUIControl.cs Wed Nov 03 21:02:54 2010 +0000 @@ -1,14 +1,14 @@ // This file (AddEquipmentUIControl.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard // -// // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. -using System; +// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. + using IBBoard.Commands; +using IBBoard.WarFoundry.API.Commands; using IBBoard.WarFoundry.API.Objects; using IBBoard.WarFoundry.API.Util; using IBBoard.WarFoundry.GUI.GTK.UIControl.Interfaces; -using IBBoard.WarFoundry.API.Commands; using CustomMath = IBBoard.CustomMath; -using IBBoard.Lang; + namespace IBBoard.WarFoundry.GUI.GTK.UIControl { public class AddEquipmentUIControl : AbstractBaseEquipmentUIControl<IAddEquipmentUI> @@ -17,13 +17,13 @@ { //Do nothing extra } - + //TODO Make abstract protected override IAddEquipmentUI CreateEquipmentUI() { return new FrmAddEquipment(); } - + protected override void CompleteUISetup() { UnitEquipmentItem[] items = Arrays.Subtract(UnitEquipmentUtil.GetAllowedEquipmentItems(unit), unit.GetEquipment());