public WinScreen() : base("Congratulations!") { // Create the "Resume" and "Exit" buttons for the screen Button restartButton = new Button("Restart"); restartButton.Tapped += restartButton_Tapped; MenuButtons.Add(restartButton); Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public GameOverScreen() : base("Game Over!") { // Create the "Resume" and "Exit" buttons for the screen Button retryButton = new Button("Retry"); retryButton.Tapped += retryButton_Tapped; MenuButtons.Add(retryButton); Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public PhonePauseScreen() : base("Paused") { // Create the "Resume" and "Exit" buttons for the screen Button resumeButton = new Button("Resume"); resumeButton.Tapped += resumeButton_Tapped; MenuButtons.Add(resumeButton); Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public ReadyScreen(string readyCrashText) : base(readyCrashText) { // Create the "Resume" and "Exit" buttons for the screen if(readyCrashText.Equals("Crash!")) { Button startButton = new Button("Continue?"); startButton.Tapped += startButton_Tapped; MenuButtons.Add(startButton); } else { Button startButton = new Button("Start!"); startButton.Tapped += startButton_Tapped; MenuButtons.Add(startButton); } Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }