예제 #1
0
 /// <summary>
 /// Called after OnEnterMainMenu. Returns true if the out parameter should be used as a button in the mode menu.
 /// </summary>
 public abstract bool TryGetModeButton(MenuPage modeMenu, out BigButton button);
예제 #2
0
 /// <summary>
 /// Called during UIManager.EditUI to allow the menu to be built.
 /// </summary>
 public abstract void OnEnterMainMenu(MenuPage modeMenu);
 public static void AddResumePage(string key, MenuPage page)
 {
     _resumePages[key] = page;
 }
        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();
 }