/// <summary> /// Checks for user input and updates according /// </summary> /// <param name="gameTime">Snapshot of timing variables from game</param> /// <param name="i">The input manager used to monitor user input</param> public void Update(GameTime gameTime, InputManager i) { foreach (MenuButton b in menuButtons) { Console.WriteLine("\t" + b.Button.Position); if (i.GameButtonWasClicked(b.Button)) { Console.WriteLine("Button Clicked!"); b.Action(); } } }
/// <summary> /// Sets the basics for the graphics, and GUI for this game /// </summary> public Game1() { /*set graphics properties*/ graphics = new GraphicsDeviceManager(this); graphics.IsFullScreen = false; //Changes the settings that you just applied graphics.ApplyChanges(); Content.RootDirectory = "Content"; //set default screen to the main menu screen gameState = GameState.BootMenu; IsMouseVisible = true; inputManager = new InputManager(); }