public static void LoadContent(ContentManager contentManager, int screenWidth, int screenHeight) { GameOverPicture = contentManager.Load<Texture2D>("GameOver"); QuitButton2 = new Button(contentManager.Load<Texture2D>("QuitButton2"), 100, 75); QuitButton2.setPosition(new Vector2(screenWidth/2 - QuitButton2.size.X /2 , screenHeight/2 - QuitButton2.size.Y/2)); }
public static void LoadContent(ContentManager contentManager, int screenWidth, int screenHeight) { menuChess = contentManager.Load<Texture2D>("ChessMenu"); PlayButton = new Button(contentManager.Load<Texture2D>("PlayButton"), 100, 75); PlayButton.setPosition(new Vector2(screenWidth / 2 - PlayButton.size.X / 2, screenHeight / 2 - 50)); QuitButton = new Button(contentManager.Load<Texture2D>("QuitButton"), 100, 75); QuitButton.setPosition(new Vector2(screenWidth / 2 - QuitButton.size.X / 2, screenHeight / 2 + 50)); }