public PhoneMainMenu() : base("") { iso = new ISOptions(); inGamee = (bool)PhoneApplicationService.Current.State[attackGame.InGameKey]; Button resume = new Button("", "button_resume"); resume.Tapped += resume_Tapped; //if (PhoneApplicationService.Current.State[attack] == true) if(inGamee) MenuButtons.Add(resume); playerPosition = new Vector2(10, 10); Button newGame = new Button("", "button_newGame"); newGame.Tapped += newGame_Tapped; MenuButtons.Add(newGame); Button help = new Button("", "button_help"); help.Tapped += help_Tapped; MenuButtons.Add(help); Button highScore = new Button("", "button_highScores"); highScore.Tapped += highScore_Tapped; MenuButtons.Add(highScore); Button options = new Button("", "button_options"); options.Tapped += options_Tapped; MenuButtons.Add(options); Button exitButton = new Button("", "button_quit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); //Debug.WriteLine("uso je opet u jebeni kontruktor"); }
public PhonePauseScreen() : base("") { // Create the "Resume" and "Exit" buttons for the screen Button resumeButton = new Button("Resume", "reset"); resumeButton.Tapped += resumeButton_Tapped; MenuButtons.Add(resumeButton); Button exitButton = new Button("Main menu", "reset"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public PauseScreen() : base("Pause") { // Create our menu entries. MenuEntry startGameMenuEntry = new MenuEntry("Return"); MenuEntry highScoreEntry = new MenuEntry("Exit"); Button resume = new Button("", "button_resume"); resume.Tapped += resume_Tapped; Button mainMenu = new Button("", "button_resume"); mainMenu.Tapped += mainMenu_Tapped; //startGameMenuEntry.Selected += StartGameMenuEntrySelected; //highScoreEntry.Selected += OnCancel; // Add entries to the menu. //MenuEntries.Add(startGameMenuEntry); //MenuEntries.Add(highScoreEntry); }