Beispiel #1
0
    public void FF9BMenu_EnableMenu(Boolean active)
    {
        if (PersistenSingleton <UIManager> .Instance.QuitScene.isShowQuitUI)
        {
            return;
        }

        if (PersistenSingleton <UIManager> .Instance.State == UIManager.UIState.BattleHUD)
        {
            _commandEnable = active;
            AllMenuPanel.SetActive(active);
            HideHudHitAreaGameObject.SetActive(active);
            if (!active)
            {
                ButtonGroupState.DisableAllGroup(true);
            }
            else
            {
                if ((_isFromPause || ButtonGroupState.ActiveGroup != String.Empty) && !_isNeedToInit)
                {
                    return;
                }

                _isNeedToInit = false;
                InitialBattle();
                DisplayParty();
                SetIdle();
            }
        }
        else
        {
            _beforePauseCommandEnable = active;
            _isNeedToInit             = active;
        }
    }
Beispiel #2
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;
    }