Ejemplo n.º 1
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public GameOverScreen(int type = -1)
            : base()
        {
            IsPopup = true;
            preventCancel = true;

            TransitionOnTime = TimeSpan.FromSeconds(1.5f);

            if (type == -1)
            {
                fact = FactoidManager.getRandomFact(Session.StatisticsManager.LevelIndex);
            }
            else
            {
                fact = FactoidManager.getRandomFact(Session.StatisticsManager.LevelIndex, type);
            }

            tryAgainMenuEntry = new MenuEntry();
            tryAgainMenuEntry.Selected += TryAgainMenuEntrySelected;
            MenuEntries.Add(tryAgainMenuEntry);

            exitMenuEntry = new MenuEntry();
            exitMenuEntry.Selected += ExitMenuEntrySelected;
            MenuEntries.Add(exitMenuEntry);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public ConfirmationScreen()
            : base()
        {
            IsPopup = true;

            yesMenuEntry = new MenuEntry();
            yesMenuEntry.Selected += YesMenuEntrySelected;
            MenuEntries.Add(yesMenuEntry);

            noMenuEntry = new MenuEntry();
            noMenuEntry.Selected += NoMenuEntrySelected;
            MenuEntries.Add(noMenuEntry);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public PauseScreen()
            : base()
        {
            IsPopup = true;

            continueMenuEntry = new MenuEntry();
            continueMenuEntry.Selected += ContinueMenuEntrySelected;
            MenuEntries.Add(continueMenuEntry);

            exitMenuEntry = new MenuEntry();
            exitMenuEntry.Selected += ExitMenuEntrySelected;
            MenuEntries.Add(exitMenuEntry);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen()
            : base()
        {
            TransitionOnTime = TimeSpan.FromSeconds(1.0f);
            TransitionOffTime = TimeSpan.FromSeconds(0.5f);

            spritePosition = new Vector2(200, 375);

            newGameMenuEntry = new MenuEntry();
            newGameMenuEntry.Selected += NewGameMenuEntrySelected;
            MenuEntries.Add(newGameMenuEntry);

            continueMenuEntry = new MenuEntry();
            continueMenuEntry.Selected += ContinueMenuEntrySelected;
            MenuEntries.Add(continueMenuEntry);

            extrasMenuEntry = new MenuEntry();
            extrasMenuEntry.Selected += ExtraMenuEntrySelected;
            MenuEntries.Add(extrasMenuEntry);
        }