Example #1
0
        public void copyFrom(CardGroupItem rhv)
        {
            if (rhv.m_cardGroup != null)
            {
                if (m_cardGroup == null)
                {
                    m_cardGroup = new t_group_list();
                }
                m_cardGroup.copyFrom(rhv.m_cardGroup);
            }

            this.m_tableJobItemBody = rhv.m_tableJobItemBody;

            if (this.m_cardList == null)
            {
                this.m_cardList = new List<uint>();
            }
            this.m_cardList.Clear();
            if (rhv.m_cardList != null)
            {
                this.m_cardList.AddRange(rhv.m_cardList);
            }
        }
Example #2
0
        public void copyFrom(CardGroupItem rhv)
        {
            if (rhv.m_cardGroup != null)
            {
                if (m_cardGroup == null)
                {
                    m_cardGroup = new t_group_list();
                }
                m_cardGroup.copyFrom(rhv.m_cardGroup);
            }

            this.m_tableJobItemBody = rhv.m_tableJobItemBody;

            if (this.m_cardList == null)
            {
                this.m_cardList = new List <uint>();
            }
            this.m_cardList.Clear();
            if (rhv.m_cardList != null)
            {
                this.m_cardList.AddRange(rhv.m_cardList);
            }
        }
Example #3
0
        public void toggleJob(int id, TableJobItemBody tableJobItemBody)
        {
            HeroItem jobInfo = Ctx.m_instance.m_dataPlayer.m_dataHero.getJobInfo(id);
            if (jobInfo != null)
            {
                m_jobLvl.text = string.Format("{0}等级:{1}", tableJobItemBody.m_jobName, jobInfo.m_svrHero.level);
            }
            else
            {
                m_jobLvl.text = string.Format("{0}等级:{1}", tableJobItemBody.m_jobName, 0);
            }

            m_skillName.text = tableJobItemBody.m_skillName;
            m_skillDesc.text = tableJobItemBody.m_skillDesc;

            m_skillImage.setImageInfo(CVAtlasName.JobSelectDyn, tableJobItemBody.m_skillRes);
            m_skillImage.syncUpdateCom();
        }