public void AddRight(SimpleButton sb) { this.ButtonsRight.Add(sb); }
/// <summary> /// /// </summary> protected override void LoadContent() { Texture2D t1 = Game.Content.Load<Texture2D>("cloth"); SimpleButton b1 = new SimpleButton(t1, 0, 0, 200, 250); Texture2D t2 = Game.Content.Load<Texture2D>("header"); SimpleButton b2 = new SimpleButton(t2, 0, 0, 200, 250); Texture2D t3 = Game.Content.Load<Texture2D>("uvs"); SimpleButton b3 = new SimpleButton(t3, 0, 0, 200, 250); this.AddLeft(b1); this.AddLeft(b2); this.AddLeft(b3); Texture2D t4 = Game.Content.Load<Texture2D>("cursor"); SimpleButton b4 = new SimpleButton(t4, 0, 0, 200, 250); Texture2D t5 = Game.Content.Load<Texture2D>("tiny_skin"); SimpleButton b5 = new SimpleButton(t5, 0, 0, 200, 250); this.AddRight(b4); this.AddRight(b5); base.LoadContent(); }
public void AddLeft(SimpleButton sb) { this.ButtonsLeft.Add(sb); }