示例#1
0
        // 修改蓝耗图标
        public void toggleMpBtn(int idx)
        {
            if (idx >= 0 && idx <= 7)
            {
                m_mpBtnImage.setImageInfo(CVAtlasName.TuJianDyn, "guolv_" + idx.ToString() + "fei");
            }
            else
            {
                m_mpBtnImage.setImageInfo(CVAtlasName.TuJianDyn, "guolv_paizu");
            }

            m_mpBtnImage.syncUpdateCom();
        }
示例#2
0
        // 修改图标
        public void toggleJobBtn(int idx)
        {
            TableJobItemBody jobBody = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_JOB, (uint)idx).m_itemBody as TableJobItemBody;

            m_jobBtnImage.setImageInfo(CVAtlasName.TuJianDyn, jobBody.m_jobBtnRes);
            m_jobBtnImage.syncUpdateCom();
        }
示例#3
0
        public void toggleJob(int idx)
        {
            TableItemBase    tableItem;
            TableJobItemBody tableJobItemBody = null;

            tableItem = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_JOB, (uint)m_jobCardList[idx].career);
            if (tableItem != null)
            {
                tableJobItemBody = tableItem.m_itemBody as TableJobItemBody;
                m_jobText.text   = tableJobItemBody.m_jobDesc;

                m_jobSelectData.m_rightPnl.toggleJob((int)(m_jobCardList[idx].career), tableJobItemBody);
                m_jobNameImage.setImageInfo(CVAtlasName.JobSelectDyn, tableJobItemBody.m_jobNameRes);
                m_jobNameImage.syncUpdateCom();
            }
        }
示例#4
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();
        }