예제 #1
0
 public MenuItem(string title, Vector2 place, SpriteFont font, Color txtCol, Menu mother)
 {
     Title = title;
     Place = place;
     Font = font;
     textColor = txtCol;
     MotherMenu = mother;
     isLinked = false;
 }
예제 #2
0
 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));
 }