public override void Update() { base.Update(); GetInput(); currentSelected = (SelectedPauseBtn)menuNum; foreach (var button in buttons) { button.Update(); } buttons[menuNum].Color = new Color(237, 71, 86); }
public PauseState() { int offset = 125; continueBtn = new Button("Continue", "Fonts\\PixelFont", "Images\\btn-template", new Vector2(250, 450 + offset), new Vector2(210, 100)); menuBtn = new Button("Menu", "Fonts\\PixelFont", "Images\\btn-template", new Vector2(550, 450 + offset), new Vector2(200, 100)); title = new GameObject("Images\\pause_card", new Vector2(162, 73), new Vector2(700, 209)); bg_card = new GameObject("Images\\tutorial", new Vector2(201, 270), new Vector2(621, 260)); overlay = Globals.Content.Load <Texture2D>("Images\\pause_overlay"); this.buttons = new List <Button>() { continueBtn, menuBtn }; currentSelected = (SelectedPauseBtn)menuNum; }