comparison Widgets/UnitDisplayWidget.cs @ 34:a35c8be46006

Re #198: Add unit equipment slots * Update to resolve errors
author IBBoard <dev@ibboard.co.uk>
date Mon, 26 Oct 2009 20:57:36 +0000
parents a191d0655f55
children 23238d998535 4a33b3012100
comparison
equal deleted inserted replaced
33:441cfc410987 34:a35c8be46006
51 51
52 int length = stats.Length; 52 int length = stats.Length;
53 53
54 for (int i = 0; i < length; i++) 54 for (int i = 0; i < length; i++)
55 { 55 {
56 unitStats.AppendColumn(stats[i].ParentSlot.Name, renderer, statFunc); 56 unitStats.AppendColumn(stats[i].ParentSlotName, renderer, statFunc);
57 } 57 }
58 58
59 TreeStore model = new TreeStore(typeof(IBBoard.WarFoundry.API.Objects.Unit)); 59 TreeStore model = new TreeStore(typeof(IBBoard.WarFoundry.API.Objects.Unit));
60 model.AppendValues(unit); 60 model.AppendValues(unit);
61 unitStats.Model = model; 61 unitStats.Model = model;