Пример #1
0
        public virtual void SetData(UListItemLegendCupGroup item)
        {
            // 组名
            int nSelfID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID);

            GroupIndex.text  = item.strGroupIndex;
            GroupIndex.color = UDefines.CommomColor(ECommonColor.ECC_White);
            foreach (var itemKin in item.kinInfoList)
            {
                if (LogicDataCenter.legendCupDataManager.CheckIsSelfInCompetitionMember(itemKin.nKinID))
                {
                    GroupIndex.color = UDefines.CommomColor(ECommonColor.ECC_Gold1);
                    break;
                }
            }

            // GroupMemberFrame
            for (int i = 0; i < KIN_ITEM_COUNT; ++i)
            {
                if (item.kinInfoList[i].nKinID != 0)
                {
                    m_kinItemList[i].SetData(item.kinInfoList[i]);
                }
                else
                {
                    m_kinItemList[i].Clear();
                }
            }

            // CompetitionNodeFrame
            for (int j = 0; j < NODE_ITEM_COUNT; ++j)
            {
                if (j < item.competitionNodeList.Count)
                {
                    m_nodeItemList[j].SetData(item.nLegendCupID, item.competitionNodeList[j], (int)ECompeitionNodeType.ECNT_GROUP);
                }
                else
                {
                    m_nodeItemList[j].Clear();
                }
            }
        }