public PhoneGameOverScreen() : base("Game Over") { // Create the "Resume" and "Exit" buttons for the screen Button resumeButton = new Button("Retry"); resumeButton.Tapped += resumeButton_Tapped; MenuButtons.Add(resumeButton); Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public PhoneMainMenuScreen() : base("Main Menu") { // Create a button to start the game Button playButton = new Button("Play"); playButton.Tapped += playButton_Tapped; MenuButtons.Add(playButton); // Create two buttons to toggle sound effects and music. This sample just shows one way // of making and using these buttons; it doesn't actually have sound effects or music Button levelButton = new Button("Level Select: " + GameOptions.levelSelected); levelButton.Tapped += levelButton_Tapped; MenuButtons.Add(levelButton); Button controlButton = new Button("Controls: Touch"); controlButton.Tapped += controlButton_Tapped; MenuButtons.Add(controlButton); }