void UpdateFellowInfo_Attr(Fellow fellow)
    {
        m_NameLabel.text        = fellow.Name;
        m_CombatValueLabel.text = fellow.GetCombatValue().ToString();
        m_TypeLabel.text        = FellowTool.GetFellowTypeText(fellow.GetFellowType(), fellow.GetEvolveLevel());
        m_BattleLevelLabel.text = fellow.GetCallLevel().ToString();
        m_LevelLabel.text       = fellow.Level.ToString();
        m_ExpLabel.text         = StrDictionary.GetClientDictionaryString("#{10316}", fellow.Exp, fellow.GetFellowLevelUpNeedExp());
        //m_GrowUpLabel.text = fellow.GrowUp.ToString();

        m_AttackLabel.text   = fellow.GetAttackValue().ToString();
        m_HitLabel.text      = fellow.GetHitValue().ToString();
        m_CriticalLabel.text = fellow.GetCriticalValue().ToString();
        m_GuardLabel.text    = fellow.GetGuardValue().ToString();
        m_BlessLabel.text    = fellow.GetBlessValue().ToString();

        if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY)
        {
            m_ProCreateLabel.text = fellow.ProcreateCount.ToString();
            m_LuckyLabel.text     = fellow.Lucky.ToString();
            m_BabyAttr.SetActive(true);
            m_SkillArea.SetActive(false);
        }
        else
        {
            m_BabyAttr.SetActive(false);
            m_SkillArea.SetActive(true);
        }

        m_ElementPic.spriteName = FellowTool.GetFellowElementPic(fellow.ElementAttr);
        // m_QualityIcon.spriteName = FellowTool.GetFellowQualityIcon(fellow.Quality);
    }
    public override void Init(ChatInfoSelectLinkLogic.Data data, int index)
    {
        base.Init(data, index);

        this.name = index.ToString();

        FellowContainer container = GameManager.gameManager.PlayerDataPool.FellowContainer;

        if (container == null)
        {
            return;
        }
        Fellow fellow = container.GetFellowByGuid(data.guid);

        if (null == fellow)
        {
            return;
        }

        m_fellowIcon.spriteName    = fellow.GetIcon();
        m_fellowName.text          = fellow.Name;
        m_level.text               = fellow.Level.ToString();
        m_combatValue.text         = fellow.GetCombatValue().ToString();
        m_fellowQuality.spriteName = FellowTool.GetFellowQualityFrame(fellow.Quality);
        this.m_fellowGuid          = data.guid;
    }
Пример #3
0
 void UpdateFellowInfo_Attr(Fellow fellow)
 {
     m_NameLabel.text           = fellow.Name;
     m_IconSprite.spriteName    = fellow.GetIcon();
     m_QualitySprite.spriteName = FellowTool.GetFellowQualityFrame(fellow.Quality);
     // m_QualityIcon.spriteName = FellowTool.GetFellowQualityIcon(fellow.Quality);
     m_CombatValueLabel.text = fellow.GetCombatValue().ToString();
     m_LevelLabel.text       = fellow.Level.ToString();
     m_ExpLabel.text         = StrDictionary.GetClientDictionaryString("#{10316}", fellow.Exp, fellow.GetFellowLevelUpNeedExp());
 }
 public void Init(Fellow fellow)
 {
     m_fellow = fellow;
     //m_NameLabel.text = Utils.GetFellowNameColor(fellow.Quality);
     m_NameLabel.text        = fellow.Name;
     m_LevelLabel.text       = fellow.Level.ToString();
     m_IconSprite.spriteName = fellow.GetIcon();
     //m_IconSprite.MakePixelPerfect();
     m_QualitySprite.spriteName = FellowTool.GetFellowQualityFrame(fellow.Quality);
     m_CombatValueLabel.text    = fellow.GetCombatValue().ToString();
     m_ProCreateLabel.text      = fellow.ProcreateCount.ToString();
     m_LuckyLabel.text          = fellow.Lucky.ToString();
 }