コード例 #1
0
ファイル: StatusUI.cs プロジェクト: ArtReeX/memoria
    private void DisplayPlayer(Boolean updateAvatar)
    {
        PLAYER player = FF9StateSystem.Common.FF9.party.member[_currentPartyIndex];

        FF9UIDataTool.DisplayCharacterDetail(player, _characterHud);
        if (!updateAvatar)
        {
            return;
        }

        FF9UIDataTool.DisplayCharacterAvatar(player, new Vector3(), new Vector3(), _characterHud.AvatarSprite, false);
    }
コード例 #2
0
ファイル: PartySettingUI.cs プロジェクト: ArtReeX/memoria
 private void DisplayCharacterInfo(Int32 charId)
 {
     if (charId != FF9PARTY_NONE)
     {
         PLAYER player = FF9StateSystem.Common.FF9.player[charId];
         this.currentCharacterHud.Content.SetActive(true);
         FF9UIDataTool.DisplayCharacterDetail(player, this.currentCharacterHud);
         this.DisplayCharacterPartyAvatar((Byte)charId, player, (UISprite)(Object)this.currentCharacterHud.AvatarSprite, this.currentCharacterHud.StatusesAvatar);
     }
     else
     {
         this.currentCharacterHud.Content.SetActive(false);
     }
 }
コード例 #3
0
ファイル: PartySettingUI.cs プロジェクト: ArtReeX/memoria
    private void DisplayCharacter()
    {
        Int32 num = 0;

        Byte[] menu = this.info.menu;
        for (Int32 i = 0; i < menu.Length; i++)
        {
            Byte b = menu[i];
            CharacterDetailPartyHUD characterDetailPartyHUD = this.currentPartyHudList[num++];
            if (b != FF9PARTY_NONE)
            {
                PLAYER player = FF9StateSystem.Common.FF9.player[b];
                characterDetailPartyHUD.Self.SetActive(true);
                characterDetailPartyHUD.Content.SetActive(true);
                characterDetailPartyHUD.EmptyLabel.gameObject.SetActive(false);
                FF9UIDataTool.DisplayCharacterDetail(player, characterDetailPartyHUD);
                this.DisplayCharacterPartyAvatar(b, player, (UISprite)(Object)characterDetailPartyHUD.AvatarSprite, characterDetailPartyHUD.StatusesAvatar);
            }
            else
            {
                characterDetailPartyHUD.EmptyLabel.text = String.Format(Localization.Get("EmptyCharNumber"), num);
                characterDetailPartyHUD.Content.SetActive(false);
                characterDetailPartyHUD.EmptyLabel.gameObject.SetActive(true);
            }
        }
        num = 0;
        Byte[] select = this.info.select;
        for (Int32 j = 0; j < select.Length; j++)
        {
            Byte b2 = select[j];
            CharacterOutsidePartyHud characterOutsidePartyHud = this.outsidePartyHudList[num++];
            if (b2 != FF9PARTY_NONE)
            {
                PLAYER player2 = FF9StateSystem.Common.FF9.player[b2];
                this.DisplayCharacterPartyAvatar(b2, player2, characterOutsidePartyHud.Avatar, characterOutsidePartyHud.StatusesAvatar);
            }
            else
            {
                characterOutsidePartyHud.Avatar.alpha = 0f;
            }
        }
    }
コード例 #4
0
    private void DisplayTarget()
    {
        Int32 num = 0;

        foreach (PLAYER player in FF9StateSystem.Common.FF9.party.member)
        {
            CharacterDetailHUD targetHud = _targetHudList[num++];
            targetHud.Self.SetActive(true);
            if (player != null)
            {
                targetHud.Content.SetActive(true);
                FF9UIDataTool.DisplayCharacterDetail(player, targetHud);
                FF9UIDataTool.DisplayCharacterAvatar(player, new Vector2(), new Vector2(), targetHud.AvatarSprite, false);
                switch (ff9item._FF9Item_Info[_itemIdList[_currentItemIndex] - 224].info.DisplayStats)
                {
                case TargetDisplay.None:
                case TargetDisplay.Hp:
                case TargetDisplay.Mp:
                    targetHud.HPPanel.SetActive(true);
                    targetHud.MPPanel.SetActive(true);
                    targetHud.StatusesPanel.SetActive(false);
                    continue;

                case TargetDisplay.Debuffs:
                case TargetDisplay.Buffs:
                    targetHud.HPPanel.SetActive(false);
                    targetHud.MPPanel.SetActive(false);
                    targetHud.StatusesPanel.SetActive(true);
                    continue;

                default:
                    continue;
                }
            }
            else
            {
                targetHud.Content.SetActive(false);
            }
        }
        SetAvalableCharacter(false);
    }
コード例 #5
0
    private void DisplayCharacter()
    {
        Int32 num = 0;

        PLAYER[] member = FF9StateSystem.Common.FF9.party.member;
        for (Int32 i = 0; i < (Int32)member.Length; i++)
        {
            PLAYER             player             = member[i];
            CharacterDetailHUD characterDetailHUD = this.CharacterHUDList[num++];
            characterDetailHUD.Self.SetActive(true);
            if (player != null)
            {
                characterDetailHUD.Content.SetActive(true);
                FF9UIDataTool.DisplayCharacterDetail(player, characterDetailHUD);
                FF9UIDataTool.DisplayCharacterAvatar(player, this.FrontRowPosition, this.BackRowPosition, characterDetailHUD.AvatarSprite, true);
            }
            else
            {
                characterDetailHUD.Content.SetActive(false);
            }
        }
    }