pwned lots of code

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1160 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-10 07:37:19 +00:00
parent 8070b4a480
commit 7add484d5d
8 changed files with 181 additions and 328 deletions

View File

@@ -22,25 +22,25 @@ namespace OpenRa.TechTreeTest
{
buildableItems.Controls.Clear();
foreach (IRAUnit b in techTree.BuildableItems)
foreach (Item b in techTree.BuildableItems)
{
PictureBox box = new PictureBox();
box.SizeMode = PictureBoxSizeMode.AutoSize;
box.Image = b.Icon;
toolTip1.SetToolTip(box, b.Tag + "\n" + b.Owner.ToString());
toolTip1.SetToolTip(box, b.Tooltip);
buildableItems.Controls.Add(box);
IRAUnit k = b;
Item k = b;
box.Click += delegate { Build(k); };
}
}
void Build(IRAUnit b)
void Build(Item b)
{
techTree.Build(b.Tag);
techTree.Build(b.tag);
RefreshList();
}
}