示例#1
0
文件: CardUI.cs 项目: ArtReeX/memoria
    private void OnDiscardDialogKeyConfirm(GameObject go)
    {
        switch (go.transform.GetSiblingIndex())
        {
        case 1:     // Confirm
        {
            if (this.count[this.deleteCardId] < 1)
            {
                goto case 2;
            }

            DiscardSeletctedCard();
            break;
        }

        case 2:     // Cancel
            FF9Sfx.FF9SFX_Play(101);
            break;

        case 3:     // Auto
            DiscardUnnecessaryCards();
            break;

        default:
            goto case 2;
        }
    }
示例#2
0
    public static void ToggleHelp(bool playSFX = true)
    {
        if (ButtonGroupState.activeGroup != String.Empty && ButtonGroupState.activeGroup != QuitUI.WarningMenuGroupButton && PersistenSingleton <UIManager> .Instance.State != UIManager.UIState.WorldHUD)
        {
            ButtonGroupState.helpEnabled = !ButtonGroupState.helpEnabled;
            ButtonGroupState component = ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup].GetComponent <ButtonGroupState>();
            if (component.Help.Enable)
            {
                Singleton <PointerManager> .Instance.SetPointerHelpAt(ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup], ButtonGroupState.helpEnabled, false);
            }
            if (!ButtonGroupState.helpEnabled)
            {
                Singleton <HelpDialog> .Instance.HideDialog();

                if (playSFX)
                {
                    FF9Sfx.FF9SFX_Play(101);
                }
            }
            else if (playSFX)
            {
                FF9Sfx.FF9SFX_Play(682);
            }
        }
    }
示例#3
0
    private IEnumerator OnFinishedLoadPreview_delay(DataSerializerErrorCode errNo, Int32 slotID, List <SharedDataPreviewSlot> data)
    {
        Single remainTime = Mathf.Max(2f - (Time.time - this.timeCounter), 0f);

        yield return(new WaitForSeconds(remainTime));

        base.Loading = false;
        if (errNo == DataSerializerErrorCode.Success)
        {
            FF9Sfx.FF9SFX_Play(1044);
            this.LoadingPreviewDialog.SetActive(false);
            if (this.type == SaveLoadUI.SerializeType.Load)
            {
                Boolean isNodata = true;
                foreach (SharedDataPreviewSlot slot in data)
                {
                    if (slot != null)
                    {
                        isNodata = false;
                        break;
                    }
                }
                if (isNodata)
                {
                    this.DisplayNoSaveFoundDialog();
                    FF9UIDataTool.DisplayTextLocalize(this.HelpTitleLabel, "SaveHelpSlot");
                    yield break;
                }
            }
            else if (data == null)
            {
                data = new List <SharedDataPreviewSlot>();
                for (Int32 index = 0; index < 15; index++)
                {
                    data.Add((SharedDataPreviewSlot)null);
                }
            }
            ButtonGroupState.MuteActiveSound = true;
            base.Loading = true;
            base.FadingComponent.FadePingPong(delegate
            {
                this.SlotListPanel.SetActive(false);
                this.FileListPanel.SetActive(true);
                FF9UIDataTool.DisplayTextLocalize(this.HelpTitleLabel, "SaveHelpBlock");
                this.DisplayFile(data);
            }, delegate
            {
                ButtonGroupState.MuteActiveSound = false;
                this.Loading = false;
            });
            yield break;
        }
        FF9Sfx.FF9SFX_Play(1046);
        global::Debug.Log("DISPLAYING CORRUPT DIALOG 1");
        FF9UIDataTool.DisplayTextLocalize(this.HelpTitleLabel, "SaveHelpSlot");
        this.LoadingPreviewDialog.SetActive(false);
        this.DisplayCorruptAccessDialog(SaveLoadUI.SlotGroupButton, SaveLoadUI.SerializeType.Load, errNo);
        this.slotNameLabelList[slotID].color = FF9TextTool.Red;
        yield break;
    }
示例#4
0
 public override Boolean OnKeyCancel(GameObject go)
 {
     if (base.OnKeyCancel(go))
     {
         if (ButtonGroupState.ActiveGroup == CloudUI.SubMenuGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             this.Hide(delegate
             {
                 PersistenSingleton <UIManager> .Instance.ChangeUIState(PersistenSingleton <UIManager> .Instance.HUDState);
             });
         }
         else if (ButtonGroupState.ActiveGroup == CloudUI.CloudFileGroupButton || ButtonGroupState.ActiveGroup == CloudUI.LocalFileGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             ButtonGroupState.ActiveGroup = CloudUI.SubMenuGroupButton;
             this.CheckData();
         }
         else if (ButtonGroupState.ActiveGroup == CloudUI.ConfirmDialogGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             this.OverWriteDialog.SetActive(false);
             if (this.syncState == CloudUI.Sync.Upload)
             {
                 ButtonGroupState.ActiveGroup = CloudUI.CloudFileGroupButton;
             }
             else
             {
                 ButtonGroupState.ActiveGroup = CloudUI.LocalFileGroupButton;
             }
         }
     }
     return(true);
 }
示例#5
0
文件: CardUI.cs 项目: ArtReeX/memoria
 public override Boolean OnKeyCancel(GameObject go)
 {
     if (base.OnKeyCancel(go))
     {
         if (ButtonGroupState.ActiveGroup == CardUI.CardGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             this.fastSwitch = false;
             this.Hide(delegate
             {
                 PersistenSingleton <UIManager> .Instance.MainMenuScene.NeedTweenAndHideSubMenu = false;
                 PersistenSingleton <UIManager> .Instance.MainMenuScene.CurrentSubMenu          = MainMenuUI.SubMenu.Card;
                 PersistenSingleton <UIManager> .Instance.ChangeUIState(UIManager.UIState.MainMenu);
             });
         }
         else if (ButtonGroupState.ActiveGroup == CardUI.DiscardDialogButtonGroup)
         {
             if (go == this.DeleteSubmenuButton)
             {
                 return(true);
             }
             FF9Sfx.FF9SFX_Play(101);
             base.Loading = true;
             this.deleteDialogTransition.TweenOut(delegate
             {
                 base.Loading = false;
                 ButtonGroupState.ActiveGroup = CardUI.CardGroupButton;
             });
             this.prevOffsetButton.enabled = true;
             this.nextOffsetButton.enabled = true;
         }
     }
     return(true);
 }
示例#6
0
 public override Boolean OnKeyCancel(GameObject go)
 {
     if (base.OnKeyCancel(go))
     {
         if (ButtonGroupState.ActiveGroup == SelectCharGroupButton)
         {
             if (this.FF9Party_Check())
             {
                 for (Int32 i = 0; i < this.info.party_ct; i++)
                 {
                     ff9play.FF9Play_SetParty(i, (FF9PARTY_NONE != this.info.menu[i]) ? this.info.menu[i] : -1);
                 }
                 FF9Sfx.FF9SFX_Play(103);
                 this.Hide(delegate
                 {
                     PersistenSingleton <UIManager> .Instance.ChangeUIState(PersistenSingleton <UIManager> .Instance.HUDState);
                 });
             }
             else
             {
                 FF9Sfx.FF9SFX_Play(102);
             }
         }
         else if (ButtonGroupState.ActiveGroup == MoveCharGroupButton)
         {
             ButtonGroupState.ActiveGroup = SelectCharGroupButton;
             FF9Sfx.FF9SFX_Play(101);
         }
     }
     return(true);
 }
示例#7
0
    private static void OnSaveLoadSceneCommandDetected(UIScene scene, SaveLoadUI.SerializeType type)
    {
        UIManager uiManager = PersistenSingleton <UIManager> .Instance;

        if (uiManager.IsLoading || uiManager.QuitScene.isShowQuitUI || uiManager.State == UIManager.UIState.Serialize)
        {
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        if (!uiManager.IsMenuControlEnable)
        {
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        switch (type)
        {
        case SaveLoadUI.SerializeType.Save:
            TryShowSaveScene(scene);
            break;

        case SaveLoadUI.SerializeType.Load:
            TryShowLoadScene(scene);
            break;
        }
    }
示例#8
0
    public override Boolean OnKeyCancel(GameObject go)
    {
        if (!base.OnKeyCancel(go))
        {
            return(true);
        }

        if (_currentAbilityPanelAmount > 0)
        {
            FF9Sfx.FF9SFX_Play(1047);
            IEnumerable <Int32> source = Enumerable.Range(0, _currentAbilityPanelAmount);

            _abilityPanelTransition.TweenOut(
                source.Select(v => (Byte)v).ToArray(),
                () => Loading = false);

            Loading = true;
            DisplayPlayerArrow(true);
            _currentAbilityPanelAmount = 0;
        }
        else
        {
            FF9Sfx.FF9SFX_Play(101);
            _fastSwitch = false;

            Hide(() =>
            {
                PersistenSingleton <UIManager> .Instance.MainMenuScene.NeedTweenAndHideSubMenu = false;
                PersistenSingleton <UIManager> .Instance.MainMenuScene.CurrentSubMenu          = MainMenuUI.SubMenu.Status;
                PersistenSingleton <UIManager> .Instance.ChangeUIState(UIManager.UIState.MainMenu);
            });
        }
        return(true);
    }
示例#9
0
    public override Boolean OnKeyRightBumper(GameObject go)
    {
        if (!base.OnKeyRightBumper(go) || !CharacterArrowPanel.activeSelf)
        {
            return(true);
        }

        FF9Sfx.FF9SFX_Play(1047);
        Int32 next = ff9play.FF9Play_GetNext(_currentPartyIndex);

        if (next == _currentPartyIndex)
        {
            return(true);
        }

        _currentPartyIndex = next;
        PLAYER player    = FF9StateSystem.Common.FF9.party.member[this._currentPartyIndex];
        String spritName = FF9UIDataTool.AvatarSpriteName(player.info.serial_no);

        Loading = true;
        Boolean isKnockOut = player.cur.hp == 0;

        _avatarTransition.Change(spritName, HonoAvatarTweenPosition.Direction.RightToLeft, isKnockOut, () =>
        {
            DisplayPlayer(true);
            Loading = false;
        });

        DisplayAllCharacterInfo(false);
        return(true);
    }
示例#10
0
    private void UpdateGil()
    {
        Boolean flag = true;

        if (this.gilValue.current < this.gilValue.value)
        {
            UInt32 num = (UInt32)((this.gilValue.current + this.gilValue.step > this.gilValue.value) ? (this.gilValue.value - this.gilValue.current) : this.gilValue.step);
            if (num != 0u)
            {
                flag = false;
                this.gilValue.current += num;
                if (9999999u < FF9StateSystem.Common.FF9.party.gil + num)
                {
                    num = 9999999u - FF9StateSystem.Common.FF9.party.gil;
                    this.gilValue.current = this.gilValue.value;
                }
                FF9StateSystem.Common.FF9.party.gil += num;
            }
        }
        if (flag)
        {
            FF9Sfx.FF9SFX_StopLoop(109);
            this.currentState = BattleResultUI.ResultState.End;
        }
    }
示例#11
0
    private void DisplayHelp(Boolean isPlaySE)
    {
        if (ButtonGroupState.HelpEnabled)
        {
            Singleton <HelpDialog> .Instance.Phrase           = Localization.Get("StatusDetailHelp");
            Singleton <HelpDialog> .Instance.PointerLimitRect = UIManager.UIScreenCoOrdinate;
            Singleton <HelpDialog> .Instance.Position         = new Vector3(524f, -68f);
            Singleton <HelpDialog> .Instance.Tail             = false;
            Singleton <HelpDialog> .Instance.Depth            = 5;
            Singleton <HelpDialog> .Instance.ShowDialog();

            if (!isPlaySE)
            {
                return;
            }
            FF9Sfx.FF9SFX_Play(682);
        }
        else
        {
            Singleton <HelpDialog> .Instance.HideDialog();

            if (!isPlaySE)
            {
                return;
            }
            FF9Sfx.FF9SFX_Play(101);
        }
    }
示例#12
0
    private void OnAllTargetHover(GameObject go, Boolean isHover)
    {
        if (!isHover || _cursorType != CursorGroup.AllEnemy && _cursorType != CursorGroup.AllPlayer)
        {
            return;
        }

        if (go == _targetPanel.Buttons.Player.GameObject)
        {
            if (_cursorType == CursorGroup.AllPlayer)
            {
                return;
            }

            FF9Sfx.FF9SFX_Play(103);
            _cursorType = CursorGroup.AllPlayer;
            DisplayTargetPointer();
        }
        else if (go == _targetPanel.Buttons.Enemy.GameObject)
        {
            if (_cursorType == CursorGroup.AllEnemy)
            {
                return;
            }

            FF9Sfx.FF9SFX_Play(103);
            _cursorType = CursorGroup.AllEnemy;
            DisplayTargetPointer();
        }
    }
示例#13
0
    public override Boolean OnKeyCancel(GameObject go)
    {
        if (base.OnKeyCancel(go) && ButtonGroupState.ActiveGroup == QuadMistUI.CardGroupButton && this.currentState == QuadMistUI.CardState.CardSelection)
        {
            FF9Sfx.FF9SFX_Play(101);
            if (this.selectedCardList.Count > 0)
            {
                this.DeselectCard(this.selectedCardList.Count - 1);
                this.DisplayCardList();
                this.DisplayCardDetail();
            }
            else
            {
                Boolean flag = false;
                if (FF9StateSystem.Common.FF9.miniGameArg == 124 || FF9StateSystem.Common.FF9.miniGameArg == 125 || FF9StateSystem.Common.FF9.miniGameArg == 126 || FF9StateSystem.Common.FF9.miniGameArg == 127)
                {
                    flag = true;
                }
                if (!flag)
                {
                    ETb.sChoose = 1;
                    String phrase = Localization.Get("QuadMistEndCardGame");
                    Dialog dialog = Singleton <DialogManager> .Instance.AttachDialog(phrase, 100, 3, Dialog.TailPosition.Center, Dialog.WindowStyle.WindowStylePlain, new Vector2(105f, 90f), Dialog.CaptionType.None);

                    ButtonGroupState.SetPointerOffsetToGroup(new Vector2(230f, 0f), Dialog.DialogGroupButton);
                    dialog.AfterDialogHidden = new Dialog.DialogIntDelegate(this.onQuitDialogHidden);
                }
            }
        }
        return(true);
    }
示例#14
0
    private IEnumerator OnFinishedSaveFile_delay(DataSerializerErrorCode errNo, Int32 slotID, Int32 saveID, Boolean isSuccess, SharedDataPreviewSlot data)
    {
        Single remainTime = Mathf.Max(2f - (Time.time - this.timeCounter), 0f);

        yield return(new WaitForSeconds(remainTime));

        this.progressBar.value = 1f;
        yield return(new WaitForSeconds(0.1f));

        base.Loading = false;
        this.LoadingAccessPanel.SetActive(false);
        if (isSuccess && errNo == DataSerializerErrorCode.Success)
        {
            FF9Sfx.FF9SFX_Play(1261);
            this.isFileExistList[this.currentFile] = true;
            this.isFileCorrupt[this.currentFile]   = false;
            this.DisplayFileInfo(this.currentFile, data);
            this.DisplaySuccessfulAccessDialog();
        }
        else
        {
            FF9Sfx.FF9SFX_Play(1046);
            global::Debug.Log("DISPLAYING CORRUPT DIALOG 2");
            FF9UIDataTool.DisplayTextLocalize(this.HelpTitleLabel, "SaveHelpBlock");
            global::Debug.LogError("Cannot save file");
            this.DisplayCorruptAccessDialog(SaveLoadUI.FileGroupButton, SaveLoadUI.SerializeType.Save, errNo);
            this.isFileCorrupt[saveID] = true;
        }
        yield break;
    }
示例#15
0
    private void OnPartySceneCommandDetected(UIScene scene)
    {
        UIManager uiManager = PersistenSingleton <UIManager> .Instance;

        if (uiManager.IsLoading || uiManager.QuitScene.isShowQuitUI || uiManager.State == UIManager.UIState.Serialize)
        {
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        if (!uiManager.IsMenuControlEnable)
        {
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        switch (PersistenSingleton <UIManager> .Instance.State)
        {
        case UIManager.UIState.FieldHUD:
        case UIManager.UIState.WorldHUD:
            break;

        default:
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        FF9Sfx.FF9SFX_Play(103);
        scene?.Hide(UISceneHelper.OpenPartyMenu);
    }
示例#16
0
    private void MoveScroll(Single multiple, Boolean isUp)
    {
        FF9Sfx.FF9SFX_Play(103);
        Single y = (!isUp) ? (this.ScrollViewPanel.transform.localPosition.y + (Single)this.Offset) : (this.ScrollViewPanel.transform.localPosition.y - (Single)this.Offset);

        this.isScrollMove = true;
        SpringPanel.Begin(this.ScrollViewPanel.cachedGameObject, new Vector3(this.ScrollViewPanel.transform.localPosition.x, y, this.ScrollViewPanel.transform.localPosition.z), this.Speed * multiple).onFinished = new SpringPanel.OnFinished(this.onScrollFinished);
    }
示例#17
0
 public static void SndCancel()
 {
     if (RealTime.time - ETb.lastPlaySound < 0.01f)
     {
         return;
     }
     ETb.lastPlaySound = RealTime.time;
     FF9Sfx.FF9SFX_Play(101);
 }
示例#18
0
文件: CardUI.cs 项目: ArtReeX/memoria
 private void DiscardSeletctedCard()
 {
     FF9Sfx.FF9SFX_Play(103);
     QuadMistDatabase.MiniGame_AwayCard(this.deleteCardId, this.offset[this.deleteCardId]);
     count[deleteCardId]            = (Byte)(count[deleteCardId] - 1);
     this.offset[this.deleteCardId] = Math.Min(this.offset[this.deleteCardId], (Int32)(this.count[this.deleteCardId] - 1));
     this.DisplayHelp();
     this.DisplayCardList();
     this.DisplayCardDetail();
 }
示例#19
0
    public void ShowWaringDialog(BoosterType type, Action callback = null)
    {
        if (this.needComfirmType == BoosterType.None && (PersistenSingleton <UIManager> .Instance.IsPlayerControlEnable || PersistenSingleton <UIManager> .Instance.State == UIManager.UIState.Config) && EventHUD.CurrentHUD == MinigameHUD.None)
        {
            this.needComfirmType = type;
            String text = String.Empty;
            switch (type)
            {
            case BoosterType.MasterSkill:
                text += Localization.Get("BoosterWarningMaster");
                break;

            case BoosterType.LvMax:
                text += Localization.Get("BoosterWarningLvMax");
                break;

            case BoosterType.GilMax:
                text += Localization.Get("BoosterWarningGilMax");
                break;
            }
            if (FF9StateSystem.aaaaPlatform)
            {
                text += Localization.Get("BoosterWarningaaaa");
            }
            else
            {
                text += Localization.Get("BoosterWarningNotaaaa");
            }
            text       += Localization.Get("BoosterWarningCommonChoice");
            ETb.sChoose = 1;
            Dialog dialog = Singleton <DialogManager> .Instance.AttachDialog(text, 0, 0, Dialog.TailPosition.Center, Dialog.WindowStyle.WindowStylePlain, new Vector2(0f, 0f), Dialog.CaptionType.None);

            ButtonGroupState.SetPointerOffsetToGroup(new Vector2(620f, 0f), Dialog.DialogGroupButton);
            dialog.AfterDialogHidden = new Dialog.DialogIntDelegate(this.OnConfirmDialogHidden);
            this.warningCallback     = callback;
            if (PersistenSingleton <UIManager> .Instance.State != UIManager.UIState.Config)
            {
                PersistenSingleton <UIManager> .Instance.SetPlayerControlEnable(false, (Action)null);

                PersistenSingleton <UIManager> .Instance.SetMenuControlEnable(false);

                PersistenSingleton <UIManager> .Instance.SetEventEnable(false);
            }
            PersistenSingleton <UIManager> .Instance.IsWarningDialogEnable = true;
            if (this.OutsideBoosterHitPoint.activeSelf)
            {
                this.CloseBoosterPanel((UIScene.SceneVoidDelegate)null);
            }
        }
        else
        {
            FF9Sfx.FF9SFX_Play(102);
        }
    }
示例#20
0
 public override Boolean OnKeyRightBumper(GameObject go)
 {
     if (base.OnKeyRightBumper(go) && !_hidingHud && ButtonGroupState.ActiveGroup == TargetGroupButton && (_targetCursor == TargetType.ManyAny || _targetCursor == TargetType.ManyEnemy || _targetCursor == TargetType.ManyAlly))
     {
         FF9Sfx.FF9SFX_Play(103);
         _isAllTarget           = !_isAllTarget;
         _allTargetToggle.value = _isAllTarget;
         _allTargetButtonComponent.SetState(UIButtonColor.State.Normal, false);
         ToggleAllTarget();
     }
     return(true);
 }
示例#21
0
	public override Boolean OnKeyConfirm(GameObject go)
	{
		if (base.OnKeyConfirm(go))
		{
			FF9Sfx.FF9SFX_Play(103);
			if (this.DisplayMode == TutorialUI.Mode.Battle)
			{
				this.OnOKButtonClick();
			}
		}
		return true;
	}
示例#22
0
文件: CardUI.cs 项目: ArtReeX/memoria
    public override Boolean OnKeyConfirm(GameObject go)
    {
        if (base.OnKeyConfirm(go))
        {
            if (ButtonGroupState.ActiveGroup == CardUI.CardGroupButton)
            {
                if (go != this.DeleteSubmenuButton)
                {
                    this.currentCardId = this.cardHudList[go.transform.GetSiblingIndex()].Id;
                }
                if (this.count[this.currentCardId] > 0)
                {
                    FF9Sfx.FF9SFX_Play(103);
                    base.Loading = true;
                    this.deleteDialogTransition.TweenIn(delegate
                    {
                        base.Loading = false;
                        ButtonGroupState.RemoveCursorMemorize(CardUI.DiscardDialogButtonGroup);
                        ButtonGroupState.ActiveGroup = CardUI.DiscardDialogButtonGroup;
                        ButtonGroupState.HoldActiveStateOnGroup(CardUI.CardGroupButton);
                    });
                    this.prevOffsetButton.enabled = false;
                    this.nextOffsetButton.enabled = false;
                    this.deleteCardId             = this.currentCardId;
                }
                else
                {
                    FF9Sfx.FF9SFX_Play(102);
                }
            }
            else if (ButtonGroupState.ActiveGroup == CardUI.DiscardDialogButtonGroup)
            {
                if (go == this.DeleteSubmenuButton)
                {
                    return(true);
                }

                OnDiscardDialogKeyConfirm(go);

                base.Loading = true;
                this.deleteDialogTransition.TweenOut(delegate
                {
                    base.Loading = false;
                    ButtonGroupState.ActiveGroup = CardUI.CardGroupButton;
                });
                this.prevOffsetButton.enabled = true;
                this.nextOffsetButton.enabled = true;
                ButtonGroupState.DisableAllGroup(true);
            }
        }
        return(true);
    }
示例#23
0
    private void OnAllTargetClick(GameObject go)
    {
        if (_cursorType == CursorGroup.All)
        {
            FF9Sfx.FF9SFX_Play(103);
            CheckDoubleCast(-1, _cursorType);
        }
        else if (UICamera.currentTouchID == 0 || UICamera.currentTouchID == 1)
        {
            FF9Sfx.FF9SFX_Play(103);
            if (go == _targetPanel.Buttons.Player.GameObject)
            {
                if (_cursorType == CursorGroup.AllPlayer)
                {
                    CheckDoubleCast(-1, _cursorType);
                }
                else
                {
                    OnTargetNavigate(go, KeyCode.RightArrow);
                }
            }
            else if (go == _targetPanel.Buttons.Enemy.GameObject)
            {
                if (_cursorType == CursorGroup.AllEnemy)
                {
                    CheckDoubleCast(-1, _cursorType);
                }
                else
                {
                    OnTargetNavigate(go, KeyCode.LeftArrow);
                }
            }
        }
        else
        {
            if (UICamera.currentTouchID != -1)
            {
                return;
            }

            FF9Sfx.FF9SFX_Play(103);
            if (go == _targetPanel.Buttons.Player.GameObject)
            {
                _cursorType = CursorGroup.AllPlayer;
            }
            else if (go == _targetPanel.Buttons.Enemy.GameObject)
            {
                _cursorType = CursorGroup.AllEnemy;
            }
            CheckDoubleCast(-1, _cursorType);
        }
    }
示例#24
0
 private void ShowLevelUpAnimation(Int32 index)
 {
     if (this.finishedLevelUpAnimation[index] >= this.totalLevelUp[index])
     {
         return;
     }
     FF9Sfx.FF9SFX_Play(683);
     this.levelUpSpriteTween[index].TweenIn(new Byte[1], delegate
     {
         this.levelUpSpriteTween[index].dialogList[0].SetActive(false);
         this.StartCoroutine(this.WaitAndPlayNextAnimation(index));
     });
 }
示例#25
0
 public void OnConfirmButtonClick()
 {
     NameInputField.value = NameInputField.value.Trim();
     if (NameInputField.value == String.Empty)
     {
         FF9Sfx.FF9SFX_Play(102);
         Warning.SetActive(true);
     }
     else
     {
         FF9Sfx.FF9SFX_Play(103);
         SetCharacterName();
     }
 }
示例#26
0
 private void UpdateState()
 {
     if (this.expEndTick && this.apEndTick)
     {
         for (Int32 i = 0; i < 4; i++)
         {
             if (this.abilityLearned[i].Count != 0)
             {
                 return;
             }
         }
         FF9Sfx.FF9SFX_StopLoop(105);
         FF9Sfx.FF9SFX_Play(103);
         this.currentState = BattleResultUI.ResultState.EndEXPAndAP;
     }
 }
示例#27
0
    private static void TryShowSaveScene(UIScene scene)
    {
        switch (PersistenSingleton <UIManager> .Instance.State)
        {
        case UIManager.UIState.FieldHUD:
        case UIManager.UIState.WorldHUD:
            break;

        default:
            FF9Sfx.FF9SFX_Play(102);
            return;
        }

        FF9Sfx.FF9SFX_Play(103);
        scene?.Hide(OnSaveGameButtonClick);
    }
示例#28
0
    private void OnClickSelectedCard(GameObject go)
    {
        Int32 siblingIndex = go.transform.GetSiblingIndex();

        if (siblingIndex < this.selectedCardList.Count)
        {
            FF9Sfx.FF9SFX_Play(101);
            QuadMistCard quadMistCard = this.selectedCardList[siblingIndex];
            this.selectedCardList.RemoveAt(siblingIndex);
            QuadMistUI.allCardList.Add(quadMistCard);
            Byte[] array = this.count;
            Byte   id    = quadMistCard.id;
            array[(Int32)id] = (Byte)(array[(Int32)id] + 1);
            QuadMistGame.UpdateSelectedCardList(this.selectedCardList);
            this.DisplayCardList();
            this.DisplayCardDetail();
        }
    }
示例#29
0
 public override Boolean OnKeyCancel(GameObject go)
 {
     if (base.OnKeyCancel(go))
     {
         if (ButtonGroupState.ActiveGroup == ChocographUI.SubMenuGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             this.Hide((UIScene.SceneVoidDelegate)null);
         }
         if (ButtonGroupState.ActiveGroup == ChocographUI.ItemGroupButton)
         {
             FF9Sfx.FF9SFX_Play(101);
             ButtonGroupState.ActiveGroup = ChocographUI.SubMenuGroupButton;
             this.HintContentPanel.SetActive(false);
         }
     }
     return(true);
 }
示例#30
0
    public override Boolean OnKeyConfirm(GameObject go)
    {
        if (!base.OnKeyConfirm(go))
        {
            return(true);
        }

        FF9Sfx.FF9SFX_Play(1047);
        if (_currentAbilityPanelAmount < 6)
        {
            if (_currentAbilityPanelAmount == 0)
            {
                _abilityCaptionList[0].SetActive(true);
            }
            _abilityPanelTransition.TweenIn(new[] { _currentAbilityPanelAmount }, () =>
            {
                Loading = false;
                for (Int32 index = 0; index < (Int32)_currentAbilityPanelAmount - 1; ++index)
                {
                    _abilityCaptionList[index].SetActive(false);
                }
                for (Int32 index = _currentAbilityPanelAmount; index < _abilityCaptionList.Count; ++index)
                {
                    _abilityCaptionList[index].SetActive(true);
                }
            });
            Loading = true;
            ++_currentAbilityPanelAmount;
        }
        else if (_currentAbilityPanelAmount == 6)
        {
            IEnumerable <Int32> source = Enumerable.Range(0, _currentAbilityPanelAmount);

            _abilityPanelTransition.TweenOut(
                source.Select(v => (Byte)v).ToArray(),
                () => Loading = false);

            Loading = true;
            _currentAbilityPanelAmount = 0;
        }

        DisplayPlayerArrow(_currentAbilityPanelAmount == 0);
        return(true);
    }