コード例 #1
0
ファイル: GameplaySuccess.cs プロジェクト: KillerFry/Tripitas
        public GameplaySuccess(string message)
        {
            Name = "GameplaySuccess";

            EnabledGestures = GestureType.Tap;

            _message = message;

            MenuEntry restartGame = new MenuEntry("Restart");
            MenuEntry next = new MenuEntry("Next!");
            MenuEntry enterHighScoreAndExit = new MenuEntry("Enter high score and exit");

            restartGame.Selected += restartSelected;
            next.Selected += nextSelected;
            enterHighScoreAndExit.Selected += EnterHighScoreAndExitSelected;

            _menuEntries = new List<MenuEntry>();
            _menuEntries.Add(restartGame);
            _menuEntries.Add(next);
            _menuEntries.Add(enterHighScoreAndExit);

            IsPopup = true;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);
        }
コード例 #2
0
        public GameplayGameOver(string message)
        {
            Name = "GameplayGameOver";

            EnabledGestures = GestureType.Tap;

            _message = message;

            MenuEntry returnToMainMenu = new MenuEntry("Menu");
            MenuEntry restartGame = new MenuEntry("Restart");
            MenuEntry enterHighScore = new MenuEntry("Enter High Score");

            returnToMainMenu.Selected += ReturnToMainMenuEntrySelected;
            restartGame.Selected += RestartGameSelected;
            enterHighScore.Selected += EnterHighScoreSelected;

            _menuEntries = new List<MenuEntry>();
            _menuEntries.Add(returnToMainMenu);
            _menuEntries.Add(restartGame);
            _menuEntries.Add(enterHighScore);

            IsPopup = true;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);
        }
コード例 #3
0
        public OptionsMenuScreen()
            : base("Options")
        {
            _ungulateMenuEntry = new MenuEntry(string.Empty);
                _languageMenuEntry = new MenuEntry(string.Empty);

                SetMenuEntryText();

                MenuEntries.Add(_ungulateMenuEntry);
                MenuEntries.Add(_languageMenuEntry);
        }
コード例 #4
0
ファイル: MainMenuScreen.cs プロジェクト: KillerFry/Tripitas
        public MainMenuScreen()
            : base("Cat's Guts")
        {
            MenuEntry playGameMenuEntry = new MenuEntry("Play Game");
            //MenuEntry highScoreCaptureMenuEntry = new MenuEntry("Highs Score Capture");
            MenuEntry highScoreMenuEntry = new MenuEntry("High Scores");

            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            //highScoreCaptureMenuEntry.Selected += HighScoreCaptureMenuEntrySelected;
            highScoreMenuEntry.Selected += HighScoreMenuEntrySelected;

            MenuEntries.Add(playGameMenuEntry);
            //MenuEntries.Add(highScoreCaptureMenuEntry);
            MenuEntries.Add(highScoreMenuEntry);
        }