private static void OnUIGoToProfileMenu(On.UIManager.orig_UIGoToProfileMenu orig, UIManager self)
 {
     if (insideResumeMenu)
     {
         InputHandler.Instance.StopUIInput();
         MenuChangerMod.HideAllMenuPages();
         transitionPage.Show();
         unloadingLabel.Show();
         self.StartCoroutine(GameManager.instance.ReturnToMainMenu(GameManager.ReturnToMainMenuSaveModes.DontSave));
     }
     else
     {
         orig(self);
     }
 }
        private static IEnumerator GoToResumeMenu(UIManager s, SaveSlotButton button, MenuPage resumePage)
        {
            InputHandler.Instance.StopUIInput();
            yield return(s.HideSaveProfileMenu());

            ReflectionHelper.CallMethod(s, "SetMenuState", MainMenuState.PLAY_MODE_MENU);
            transitionPage.Show();
            loadingLabel.Show();
            yield return(null);

            yield return(LoadGameAndDoAction(button.GetSaveSlotIndex(), () =>
            {
                insideResumeMenu = true;
                loadingLabel.Hide();
                transitionPage.Hide();
                InputHandler.Instance.StartUIInput();
                resumePage.Show();
            }));
        }
 /// <summary>
 /// Hides this MenuPage and shows the next page.
 /// </summary>
 public void TransitionTo(MenuPage next)
 {
     Hide();
     next.Show();
 }