Killed that fail TechTree, and added a new one to Rules.

This commit is contained in:
Bob
2009-10-30 09:04:33 +13:00
parent 7b28ab7979
commit 6306690730
16 changed files with 133 additions and 272 deletions

View File

@@ -1,19 +1,20 @@
using OpenRa.Game.Graphics;
using OpenRa.TechTree;
namespace OpenRa.Game
{
class SidebarItem
{
public readonly Item techTreeItem;
public readonly float2 location;
public readonly string Tag;
public readonly bool IsStructure;
readonly Sprite sprite;
public SidebarItem(Sprite s, Item item, int y)
public SidebarItem(Sprite s, string tag, bool isStructure, int y)
{
this.techTreeItem = item;
this.sprite = s;
location = new float2(item.IsStructure ? 0 : 64, y);
this.Tag = tag;
this.IsStructure = isStructure;
location = new float2(isStructure ? 0 : 64, y);
}
public bool Clicked(float2 p)