public void Unload() { highscoreHead = null; mainMenuButton = null; quitButton = null; scoreList = null; }
public void Unload() { menuButton = null; playAgainButton = null; submitScoreButton = null; quitButton = null; }
public void Initialize() { menuButton = game.menuButton; viewportHeight = game.GraphicsDevice.Viewport.Height; viewportWidth = game.GraphicsDevice.Viewport.Width; submitScoreButton = new MenuButton(menuButton, game.TextToTexture("Submit", 30), viewportWidth / 2 - menuButton.Width / 2, 200); playAgainButton = new MenuButton(menuButton, game.TextToTexture("Play Again", 30), viewportWidth / 2 - menuButton.Width / 2, submitScoreButton.Rect.Bottom + 25); quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), viewportWidth / 2 - menuButton.Width / 2, playAgainButton.Rect.Bottom + 25); }
public void Initialize() { menuButton = game.menuButton; viewportHeight = game.GraphicsDevice.Viewport.Height; viewportWidth = game.GraphicsDevice.Viewport.Width; startButton = new MenuButton(menuButton, game.TextToTexture("Start", 30), viewportWidth / 2 - menuButton.Width / 2, 200); highScoreButton = new MenuButton(menuButton, game.TextToTexture("Highscore", 30), viewportWidth / 2 - menuButton.Width / 2, startButton.Rect.Bottom + 25); quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), viewportWidth / 2 - menuButton.Width / 2, highScoreButton.Rect.Bottom + 25); }
public void Initialize() { menuButton = game.menuButton; highscoreHead = game.TextToTexture("Highscore", 48); viewportHeight = game.GraphicsDevice.Viewport.Height; viewportWidth = game.GraphicsDevice.Viewport.Width; mainMenuButton = new MenuButton(menuButton, game.TextToTexture("Back", 30), (viewportWidth / 2) - (int)(menuButton.Width*1.10f), viewportHeight - 100); quitButton = new MenuButton(menuButton, game.TextToTexture("Quit", 30), (viewportWidth / 2)+ (int)(menuButton.Width * 0.10f), viewportHeight - 100); scoreList = game.highscore.scoreList; }
public void Unload() { startButton = null; quitButton = null; }