/// <summary>
        /// Event Handler for when the Mouse Cursor Enable menu entry is selected.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void CursorEnableEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            globalOptions.CURSOR_ENABLE = !globalOptions.CURSOR_ENABLE;
            Options temp = ScreenManager.GlobalOptions;
            temp.CURSOR_ENABLE = globalOptions.CURSOR_ENABLE;
            ScreenManager.GlobalOptions = temp;

            SetMenuEntryText();
        }
        /// <summary>
        /// Event handler for when the Quit Game menu entry is selected.
        /// </summary>
        void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Are you sure you want to quit this game?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer);
        }
        void OnControls(object sender, PlayerIndexEventArgs e)
        {
            const string message = "CONTROLS CAN NOT BE CHANGED!\n" +
                                 "A, L Mouse:     Select / Return Bottle\n" +
                                 "RB, R Mouse:    Next Bottle\n" +
                                 "Tab, Y:         Go To Shop Screen\n" +
                                 "Start, Escape:  Pause / Back\n" +
                                 "B, Enter:        Skip Dialogue";

            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message);

            //confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmExitMessageBox, e.PlayerIndex);
        }
        /// <summary>
        /// Event handler for when the Debug Text menu entry is selected.
        /// </summary>
        void DebugMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            globalOptions.DEBUG_TEXT = !globalOptions.DEBUG_TEXT;
            Options temp = ScreenManager.GlobalOptions;
            temp.DEBUG_TEXT = globalOptions.DEBUG_TEXT;
            ScreenManager.GlobalOptions = temp;

            SetMenuEntryText();
        }
        /// <summary>
        /// Event handler for when the Fullscreen menu entry is selected.
        /// </summary>
        void FullscreenMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            globalOptions.FULLSCREEN = !globalOptions.FULLSCREEN;
            Options temp = ScreenManager.GlobalOptions;
            temp.FULLSCREEN = globalOptions.FULLSCREEN;
            ScreenManager.GlobalOptions = temp;

            SetMenuEntryText();
        }
 /// <summary>
 /// Event Handler for In-Game Options Menu Access
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(ScreenManager.GlobalOptions), e.PlayerIndex);
 }
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to quit" message box. This uses the loading screen to
 /// transition from the game back to the main menu screen.
 /// </summary>
 void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(),
                                                    new MainMenuScreen());
 }
        void OnCredits(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Code: Eric Weinerman, Quinlan Pfiffer, Scott Cannard" +
                                    "\nArt: Benjamin Reyes" +
                                    "\nSound: Eric Weinerman, Robert Reitmeyer";

            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message);

            //confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmExitMessageBox, e.PlayerIndex);
        }
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Пример #10
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new CharacterSelectionScreen(), e.PlayerIndex);
 }
Пример #11
0
        void OnTutorial(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Tutorial is not in Braile...sorry.";

            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message);

            //confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmExitMessageBox, e.PlayerIndex);
        }
Пример #12
0
 /// <summary>
 /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 /// </summary>
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }