示例#1
0
    private void Awake()
    {
        base.FadingComponent = this.ScreenFadeGameObject.GetComponent <HonoFading>();
        foreach (Object obj in this.CharacterInfoPanel.GetChild(0).transform)
        {
            Transform transform = (Transform)obj;
            BattleResultUI.CharacterBattleResultInfoHUD item = new BattleResultUI.CharacterBattleResultInfoHUD(transform.gameObject);
            this.characterBRInfoHudList.Add(item);
        }
        this.expReceiveLabel     = this.EXPPanel.GetChild(1).GetComponent <UILabel>();
        this.apReceiveLabel      = this.APPanel.GetChild(1).GetComponent <UILabel>();
        this.receiveGilLabel     = this.ReceiveGilPanel.GetChild(1).GetComponent <UILabel>();
        this.currentGilLabel     = this.CurrentGilPanel.GetChild(1).GetComponent <UILabel>();
        this.infoLabelGameObject = this.InfoPanel.GetChild(0);
        Int32 childCount = this.ItemListPanel.GetChild(0).GetChild(0).transform.childCount;

        this.ItemDetailPanel = this.ItemListPanel.GetChild(0).GetChild(0);
        this.noItemLabel     = this.ItemListPanel.GetChild(0).GetChild(1);
        for (Int32 i = 0; i < childCount; i++)
        {
            GameObject child = this.ItemListPanel.GetChild(0).GetChild(0).GetChild(i);
            if (i == childCount - 1)
            {
                this.cardHud = new ItemListDetailWithIconHUD(child, false);
            }
            else if (i != childCount - 2)
            {
                this.itemHudList.Add(new ItemListDetailWithIconHUD(child, true));
            }
        }
        this.screenFadePanel             = this.ScreenFadeGameObject.GetParent().GetComponent <UIPanel>();
        this.expLeftSideTween            = this.TransitionPanel.GetChild(0).GetComponent <HonoTweenPosition>();
        this.expRightSideTween           = this.TransitionPanel.GetChild(1).GetComponent <HonoTweenPosition>();
        this.infoPanelTween              = this.TransitionPanel.GetChild(2).GetComponent <HonoTweenPosition>();
        this.helpPanelTween              = this.TransitionPanel.GetChild(3).GetComponent <HonoTweenPosition>();
        this.ItemOverflowPanelTween      = this.TransitionPanel.GetChild(4).GetComponent <HonoTweenClipping>();
        this.ItemPanelTween              = this.TransitionPanel.GetChild(5).GetComponent <HonoTweenClipping>();
        this.levelUpSpriteTween          = new HonoTweenPosition[4];
        this.levelUpSpriteTween[0]       = this.TransitionPanel.GetChild(6).GetComponent <HonoTweenPosition>();
        this.levelUpSpriteTween[1]       = this.TransitionPanel.GetChild(7).GetComponent <HonoTweenPosition>();
        this.levelUpSpriteTween[2]       = this.TransitionPanel.GetChild(8).GetComponent <HonoTweenPosition>();
        this.levelUpSpriteTween[3]       = this.TransitionPanel.GetChild(9).GetComponent <HonoTweenPosition>();
        this.abilityLearnedPanelTween    = new HonoTweenClipping[4];
        this.abilityLearnedPanelTween[0] = this.TransitionPanel.GetChild(10).GetComponent <HonoTweenClipping>();
        this.abilityLearnedPanelTween[1] = this.TransitionPanel.GetChild(11).GetComponent <HonoTweenClipping>();
        this.abilityLearnedPanelTween[2] = this.TransitionPanel.GetChild(12).GetComponent <HonoTweenClipping>();
        this.abilityLearnedPanelTween[3] = this.TransitionPanel.GetChild(13).GetComponent <HonoTweenClipping>();
        if (FF9StateSystem.MobilePlatform)
        {
            this.AllPanel.GetChild(3).GetChild(0).GetComponent <UILocalize>().key = "TouchToConfirm";
        }
        GameObject child2 = this.GilAndItemPhrasePanel.GetChild(0);
        GameObject child3 = this.GilAndItemPhrasePanel.GetChild(0).GetChild(0);

        child2.GetComponent <UIPanel>().depth = 2;
        child3.GetComponent <UIPanel>().depth = 3;
    }
示例#2
0
 private void DisplayCharacterInfo()
 {
     for (Int32 i = 0; i < 4; i++)
     {
         PLAYER player = FF9StateSystem.Common.FF9.party.member[i];
         if (player != null)
         {
             UInt64 num = (player.level >= 99) ? player.exp : ff9level.CharacterLevelUps[player.level].ExperienceToLevel;
             BattleResultUI.CharacterBattleResultInfoHUD characterBattleResultInfoHUD = this.characterBRInfoHudList[i];
             characterBattleResultInfoHUD.Content.SetActive(true);
             characterBattleResultInfoHUD.NameLabel.text   = player.name;
             characterBattleResultInfoHUD.LevelLabel.text  = player.level.ToString();
             characterBattleResultInfoHUD.ExpLabel.text    = player.exp.ToString();
             characterBattleResultInfoHUD.NextLvLabel.text = (num - player.exp).ToString();
             FF9UIDataTool.DisplayCharacterAvatar(player, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), characterBattleResultInfoHUD.AvatarSprite, false);
             UISprite[] statusesSpriteList = characterBattleResultInfoHUD.StatusesSpriteList;
             for (Int32 j = 0; j < (Int32)statusesSpriteList.Length; j++)
             {
                 UISprite uisprite = statusesSpriteList[j];
                 uisprite.alpha = 0f;
             }
             Int32 num2 = 0;
             foreach (KeyValuePair <UInt32, Byte> keyValuePair in BattleResultUI.BadIconDict)
             {
                 if (((UInt32)player.status & keyValuePair.Key) != 0u)
                 {
                     characterBattleResultInfoHUD.StatusesSpriteList[num2].alpha      = 1f;
                     characterBattleResultInfoHUD.StatusesSpriteList[num2].spriteName = FF9UIDataTool.IconSpriteName[(Int32)keyValuePair.Value];
                     num2++;
                     if (num2 > (Int32)characterBattleResultInfoHUD.StatusesSpriteList.Length)
                     {
                         break;
                     }
                 }
             }
             if (!this.IsEnableDraw(player, i))
             {
                 this.isRecieveExpList.Add(false);
                 characterBattleResultInfoHUD.DimPanel.SetActive(true);
                 characterBattleResultInfoHUD.AvatarSprite.alpha = 0.5f;
             }
             else
             {
                 this.isRecieveExpList.Add(true);
                 characterBattleResultInfoHUD.DimPanel.SetActive(false);
                 characterBattleResultInfoHUD.AvatarSprite.alpha = 1f;
             }
         }
     }
 }