protected override void MousePick(MouseOverList list, SpriteVertex[] vertex) { int x = list.MousePosition.X - (int)vertex[0].Position.X; int y = list.MousePosition.Y - (int)vertex[0].Position.Y; if (Art.Contains(GameObject.Graphic, x, y)) { list.Add(GameObject, vertex[0].Position); } }
protected override bool Contains(int x, int y) { if (Art.Contains(Item.DisplayedGraphic, x, y)) { return(true); } if (Item.Amount > 1 && TileData.IsStackable((long)Item.ItemData.Flags)) { if (Art.Contains(Item.DisplayedGraphic, x - 5, y - 5)) { return(true); } } return(false); }