示例#1
0
        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");
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }