Esempio n. 1
0
 public override void Load(ContentManager Content)
 {
     font = Content.Load<SpriteFont>(@"Fonts/DeathFont");
     Button buttonLeft = new Button(Content.Load<Texture2D>(@"TestObjects/redheadButton"), new Vector2(130, 150));
     Button buttonMid = new Button(Content.Load<Texture2D>(@"TestObjects/guyButton"), new Vector2(330, 150));
     Button buttonRight = new Button(Content.Load<Texture2D>(@"TestObjects/blondieButton"), new Vector2(530, 150));
     this.Buttons.Add(buttonLeft);
     this.Buttons.Add(buttonRight);
     this.Buttons.Add(buttonMid);
 }
Esempio n. 2
0
 public override void Load(ContentManager content)
 {
     font = content.Load<SpriteFont>(@"Fonts/SpriteFont");
     Button replay = new Button(content.Load<Texture2D>(@"TestObjects/kappa"), new Vector2(300, 250));
     Buttons.Add(replay);
 }