public MenuItem(string title, Vector2 place, SpriteFont font, Color txtCol, Menu mother) { Title = title; Place = place; Font = font; textColor = txtCol; MotherMenu = mother; isLinked = false; }
public void AddMenuItem(string title, int height, int width, Color cl, SpriteFont font, Menu link) { menuItems.Add(new MenuItem(title, new Vector2(Position.X + width, Position.Y + height * menuItems.Count), font, cl, this, link)); }