Ejemplo n.º 1
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate action = GeneratedShow;

        if (afterFinished != null)
        {
            action = (SceneVoidDelegate)Delegate.Combine(action, afterFinished);
        }

        if (!_isFromPause)
        {
            base.Show(action);
            PersistenSingleton <UIManager> .Instance.Booster.SetBoosterState(PersistenSingleton <UIManager> .Instance.UnityScene);

            FF9StateSystem.Settings.SetMasterSkill();
            AllMenuPanel.SetActive(false);
        }
        else
        {
            _commandEnable = _beforePauseCommandEnable;
            _isTryingToRun = false;
            Singleton <HUDMessage> .Instance.Pause(false);

            base.Show(action);
            if (_commandEnable && !_hidingHud)
            {
                FF9BMenu_EnableMenu(true);
                ButtonGroupState.ActiveGroup = _currentButtonGroup;
                DisplayTargetPointer();
            }
        }
        _isFromPause = false;
        _oneTime     = true;
    }
Ejemplo n.º 2
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate action = () =>
        {
            PersistenSingleton <UIManager> .Instance.MainMenuScene.SubMenuPanel.SetActive(false);

            ButtonGroupState.SetPointerDepthToGroup(4, ItemGroupButton);
            ButtonGroupState.SetPointerDepthToGroup(7, TargetGroupButton);
            ButtonGroupState.SetPointerOffsetToGroup(new Vector2(54f, 0.0f), ItemGroupButton);
            ButtonGroupState.SetPointerOffsetToGroup(new Vector2(54f, 0.0f), KeyItemGroupButton);
            ButtonGroupState.SetPointerOffsetToGroup(new Vector2(160f, 10f), ArrangeMenuGroupButton);
            ButtonGroupState.SetPointerOffsetToGroup(new Vector2(48f, -6f), ItemArrangeGroupButton);
            ButtonGroupState.SetScrollButtonToGroup(_itemScrollList.ScrollButton, ItemGroupButton);
            ButtonGroupState.SetScrollButtonToGroup(_itemScrollList.ScrollButton, ItemArrangeGroupButton);
            ButtonGroupState.SetScrollButtonToGroup(_keyItemScrollList.ScrollButton, KeyItemGroupButton);
            ButtonGroupState.SetPointerLimitRectToGroup(ItemListPanel.GetComponent <UIWidget>(), _itemScrollList.cellHeight, ItemGroupButton);
            ButtonGroupState.SetPointerLimitRectToGroup(ItemListPanel.GetComponent <UIWidget>(), _itemScrollList.cellHeight, ItemArrangeGroupButton);
            ButtonGroupState.SetPointerLimitRectToGroup(KeyItemListPanel.GetComponent <UIWidget>(), _keyItemScrollList.cellHeight, KeyItemGroupButton);
            ButtonGroupState.ActiveGroup = SubMenuGroupButton;
            StartCoroutine(Show_dalay());
            afterFinished?.Invoke();
        };

        SceneDirector.FadeEventSetColor(FadeMode.Sub, Color.black);
        base.Show(action);
        ItemListPanel.SetActive(true);
        KeyItemListPanel.SetActive(false);
        DisplayItem();
        HelpDespLabelGameObject.SetActive(FF9StateSystem.PCPlatform);
        _itemScrollList.ScrollButton.DisplayScrollButton(false, false);
        _keyItemScrollList.ScrollButton.DisplayScrollButton(false, false);
    }
Ejemplo n.º 3
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        TryHackPartyInfo(this.info);

        SceneVoidDelegate sceneVoidDelegate = delegate
        {
            if (Configuration.Graphics.WidescreenSupport)
            {
                ButtonGroupState.SetPointerOffsetToGroup(new Vector2(150, -18f), MoveCharGroupButton);
            }
            else
            {
                ButtonGroupState.SetPointerOffsetToGroup(new Vector2(18f, -18f), MoveCharGroupButton);
            }

            ButtonGroupState.SetPointerDepthToGroup(6, MoveCharGroupButton);
            ButtonGroupState.ActiveGroup = SelectCharGroupButton;
        };

        if (afterFinished != null)
        {
            sceneVoidDelegate = (SceneVoidDelegate)Delegate.Combine(sceneVoidDelegate, afterFinished);
        }
        SceneDirector.FadeEventSetColor(FadeMode.Sub, Color.black);
        base.Show(sceneVoidDelegate);
        this.DisplayCharacter();
        this.DisplayCharacterInfo(this.currentCharacterId);
        this.DisplayHelpInfo();
        this.HelpDespLabelGameObject.SetActive(FF9StateSystem.PCPlatform);
    }
Ejemplo n.º 4
0
 public override void Hide(SceneVoidDelegate afterFinished = null)
 {
     base.Hide(afterFinished);
     if (_fastSwitch)
     {
         return;
     }
     PersistenSingleton <UIManager> .Instance.MainMenuScene.StartSubmenuTweenIn();
 }
Ejemplo n.º 5
0
    public override void Hide(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate action = () => PersistenSingleton <UIManager> .Instance.SetMenuControlEnable(PersistenSingleton <UIManager> .Instance.IsMenuControlEnable);

        if (afterFinished != null)
        {
            action = (SceneVoidDelegate)Delegate.Combine(action, afterFinished);
        }
        base.Hide(action);
        PersistenSingleton <HonoInputManager> .Instance.DisablePrimaryKey = false;
    }
Ejemplo n.º 6
0
    public override void Hide(SceneVoidDelegate afterFinished = null)
    {
        base.Hide(afterFinished);
        if (_fastSwitch)
        {
            return;
        }
        PersistenSingleton <UIManager> .Instance.MainMenuScene.StartSubmenuTweenIn();

        _usedItemIdList.Clear();
        RemoveCursorMemorize();
    }
Ejemplo n.º 7
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        SceneDirector.FadeEventSetColor(FadeMode.Sub, Color.black);
        base.Show(afterFinished);
        GetID();
        SetData();
        NameInputField.isSelected = true;
        Warning.SetActive(false);
        PersistenSingleton <UIManager> .Instance.SetMenuControlEnable(true);

        PersistenSingleton <HonoInputManager> .Instance.DisablePrimaryKey = true;
    }
Ejemplo n.º 8
0
    public override void Hide(SceneVoidDelegate afterFinished = null)
    {
        base.Hide(afterFinished);
        PauseButtonGameObject.SetActive(false);
        HelpButtonGameObject.SetActive(false);
        if (_isFromPause)
        {
            return;
        }

        RemoveCursorMemorize();
    }
Ejemplo n.º 9
0
    public override void Hide(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate action = OnHideAfterHide;

        if (afterFinished != null)
        {
            action = (SceneVoidDelegate)Delegate.Combine(action, afterFinished);
        }
        base.Hide(action);
        PauseButtonGameObject.SetActive(false);
        HelpButtonGameObject.SetActive(false);
        PersistenSingleton <UIManager> .Instance.SetPlayerControlEnable(false, null);

        PersistenSingleton <UIManager> .Instance.SetEventEnable(false);
    }
Ejemplo n.º 10
0
    public override void Hide(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate sceneVoidDelegate = delegate
        {
            SceneDirector.FF9Wipe_FadeInEx(12);
        };

        if (afterFinished != null)
        {
            sceneVoidDelegate = (SceneVoidDelegate)Delegate.Combine(sceneVoidDelegate, afterFinished);
        }
        base.Hide(sceneVoidDelegate);
        BattleAchievement.UpdateParty();
        this.RemoveCursorMemorize();
    }
Ejemplo n.º 11
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        base.Show(() =>
        {
            PersistenSingleton <UIManager> .Instance.MainMenuScene.SubMenuPanel.SetActive(false);
            afterFinished?.Invoke();
        });

        DisplayPlayerArrow(true);
        DisplayAllCharacterInfo(true);
        if (ButtonGroupState.HelpEnabled)
        {
            DisplayHelp(false);
        }

        HelpDespLabelGameObject.SetActive(FF9StateSystem.PCPlatform);
    }
Ejemplo n.º 12
0
    public override void Show(SceneVoidDelegate afterFinished = null)
    {
        SceneVoidDelegate action = OnShownAction;

        if (afterFinished != null)
        {
            action = (SceneVoidDelegate)Delegate.Combine(action, afterFinished);
        }
        base.Show(action);
        PersistenSingleton <UIManager> .Instance.Booster.SetBoosterState(PersistenSingleton <UIManager> .Instance.UnityScene);

        VirtualAnalog.Init(gameObject);
        VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.gameObject);
        VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Dialogs.gameObject);
        VirtualAnalog.FallbackTouchWidgetList.Add(PersistenSingleton <UIManager> .Instance.Booster.OutsideBoosterHitPoint);
        PersistenSingleton <UIManager> .Instance.SetGameCameraEnable(true);
    }
Ejemplo n.º 13
0
    private IEnumerator WaitForFade()
    {
        yield return(new WaitForSeconds(1.5f));

        PersistenSingleton <UIManager> .Instance.MainMenuScene.ScreenFadeGameObject.GetParent().GetComponent <UIPanel>().depth = 100;

        _chocoboDialog.Hide();

        SceneVoidDelegate fAmCache3 = () =>
        {
            PersistenSingleton <UIManager> .Instance.MainMenuScene.SubMenuPanel.SetActive(false);

            PersistenSingleton <UIManager> .Instance.ChangeUIState(UIManager.UIState.WorldHUD);

            PersistenSingleton <UIManager> .Instance.MainMenuScene.NeedTweenAndHideSubMenu = true;
            PersistenSingleton <UIManager> .Instance.MainMenuScene.ScreenFadeGameObject.GetParent().GetComponent <UIPanel>().depth = 10;
        };

        Hide(fAmCache3);
    }