Exemplo n.º 1
0
        public void ShowRune(ItemTemplate _temp_rune, bool nativeSize = true)
        {
            //符文
            RuneIcon  = selfTransform.FindChild("RuneIconItem").gameObject;
            mNorBg    = selfTransform.FindChild("RuneIconItem/RuneIconList/bg").GetComponent <Image>();
            mSpecBg   = selfTransform.FindChild("RuneIconItem/RuneIconList/bg1").GetComponent <Image>();
            RuneImage = selfTransform.FindChild("RuneIconItem/RuneIconList/icon").GetComponent <Image>();
            this.star = transform.FindChild("star").GetComponent <UIHeroStar>();
            mTypeObjs = new GameObject[4];
            for (int i = 0; i < 4; i++)
            {
                mTypeObjs[i] = transform.FindChild("RuneIconItem/RuneIconList/bg/type" + (i + 1)).gameObject;
            }

            string _tempIconNam_2 = _temp_rune.getIcon();

            RuneImage.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _tempIconNam_2);
            if (nativeSize)
            {
                RuneImage.SetNativeSize();
            }

            bool isSpecial = RuneModule.IsSpecialRune(_temp_rune);

            SetIsSpecial(isSpecial);
            SetRuneType(_temp_rune.getRune_type());

            this.star.gameObject.SetActive(true);
            int star    = _temp_rune.getRune_quality();
            int maxStar = 5;

            this.star.Set(star, maxStar);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 显示符文信息
 /// </summary>
 private void ShowRuneData()
 {
     m_RuneName.text      = GameUtils.getString(m_ItemData.getName());
     m_PatentHeroTxt.text = GameUtils.getString(m_ItemData.getSpecialHeroDes());
     m_RuneIconItem       = new RuneIconItem(m_RuneIconTrans);
     m_RuneIconItem.SetIcon(common.defaultPath + m_ItemData.getIcon());
     m_RuneIconItem.SetRuneType(m_ItemData.getRune_type());
     m_RuneIconItem.SetLevelInfoActive(false);
     m_RuneIconItem.SetIsSpecial(RuneModule.IsSpecialRune(m_ItemData));
 }
Exemplo n.º 3
0
    private void ShowRune(ItemTemplate _temp_rune)
    {
        string _tempIconNam_2 = _temp_rune.getIcon();

        RuneImage.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _tempIconNam_2);

        bool isSpecial = RuneModule.IsSpecialRune(_temp_rune);

        SetIsSpecial(isSpecial);
        SetRuneType(_temp_rune.getRune_type());

        NumText.transform.parent.gameObject.SetActive(false);
        this.star.gameObject.SetActive(true);
        int star    = _temp_rune.getRune_quality();
        int maxStar = 5;

        this.star.Set(star, maxStar);
    }
Exemplo n.º 4
0
    public void ShowInfo()
    {
        _rune = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(tableID);
        //_icon.overrideSprite = UIResourceMgr.LoadSprite(common.defaultPath + _rune.getIcon());
        //_icon.SetNativeSize();
        _data = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, guid);
        //_level.text = "+" + _data.GetStrenghLevel().ToString();

        //int level = _rune.getRune_quality();
        //for (int i = 0; i < level; i++)
        //{
        //    _starLevel.transform.GetChild(i).gameObject.SetActive(true);
        //}

        SetIcon(common.defaultPath + _rune.getIcon());
        SetRuneType(_rune.getRune_type());
        //SetIsSpecial(_rune.getRune_type() == 5 || _rune.getRune_type() == 6);
        SetIsSpecial(RuneModule.IsSpecialRune(_rune));
        SetStarsNum(_rune.getRune_quality());
    }
Exemplo n.º 5
0
    public RuneDetailCommon(Transform parent, int runeTableId, float scrollRectHeight = -1f)
    {
        mParent      = parent;
        mRuneTableId = runeTableId;
        ItemTemplate itemT = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(runeTableId);

        SetRuneTemplateDate(itemT);

        RuneDetailScrollRect scrollRect = RuneFactory.Create(RuneDetailObjType.ScrollRect, parent) as RuneDetailScrollRect;

        layoutTrans = scrollRect.GetLayoutObj().transform;

        if (scrollRectHeight > 0f)
        {
            scrollRect.SetScrollRectWidth(scrollRectHeight);
        }

        bool isSpec = RuneModule.IsSpecialRune(runeTableId);

        UpdateData(isSpec ? RuneAttriShowType.BaseContent : RuneAttriShowType.BaseAttriOnly);
    }
Exemplo n.º 6
0
    /// <summary>
    /// 显示奖励物品数据
    /// </summary>
    private void ShowReardData()
    {
        switch (GameUtils.GetObjectClassById(m_MedalData.getRewardId()))
        {
        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_INVALID:
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_SPELL:    //技能
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_BUFF:    //buff
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_DROPBOX:    //掉落包
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_MONSTER:    //关卡与怪物
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_RES:     //资源
            m_Icon.sprite = GameUtils.GetSpriteByResourceType(m_MedalData.getRewardId());
            m_Icon.SetNativeSize();
            StringBuilder _str = new StringBuilder();
            _str.Append("×");
            _str.Append(m_MedalData.getRewardNum());
            m_ReardNumTxt.text = _str.ToString();
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_RUNE:    //符文
            m_Icon.enabled = false;
            m_RuneIconObj.SetActive(true);

            ItemTemplate _item1 = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(m_MedalData.getRewardId());
            m_RuneIconItem = new RuneIconItem(m_RuneIconObj.transform);
            m_RuneIconItem.SetIcon(common.defaultPath + _item1.getIcon());
            m_RuneIconItem.SetRuneType(_item1.getRune_type());
            m_RuneIconItem.SetLevelInfoActive(false);
            m_RuneIconItem.SetIsSpecial(RuneModule.IsSpecialRune(_item1));
            m_ReardNumTxt.text = GameUtils.getString(_item1.getName());
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_COMMON:    //道具
            ItemTemplate _item2 = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(m_MedalData.getRewardId());
            m_Icon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _item2.getIcon());
            m_Icon.SetNativeSize();
            m_ReardNumTxt.text = GameUtils.getString(_item2.getName());
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_HERO:    //英雄
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_SKIN:    //皮肤
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_BOX:    //宝箱
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_ARTIFACT:    //神器
            break;

        case EM_OBJECT_CLASS.EM_OBJECT_CLASS_NUMBER:
            break;

        default:
            break;
        }
    }
Exemplo n.º 7
0
    public void ShowInfo()
    {
        // 获得数据
        _rune = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(tableID);
        _data = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, guid);

        //_icon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _rune.getIcon());
        //_icon.SetNativeSize();

        iconItem.SetIcon(common.defaultPath + _rune.getIcon());
        iconItem.SetRuneType(_rune.getRune_type());
        //iconItem.SetIsSpecial(_rune.getRune_type() == 5 || _rune.getRune_type() == 6);
        iconItem.SetIsSpecial(RuneModule.IsSpecialRune(_rune));

        // 是否已装备
        if (_data.IsEquip())
        {
            _equip.SetActive(true);
        }
        else
        {
            _equip.SetActive(false);
        }

        // 名称
        _name.text = GameUtils.getString(_rune.getName());

        // 符文等级
        _level.text = "+" + _data.GetStrenghLevel().ToString();

        // 符文基础值
        smelt = _rune.getRune_smelt();
        //_smeltText.text = smelt.ToString();

        // 符文星级
        int level = _rune.getRune_quality();

        for (int i = 5; i < 10; i++)
        {
            _starLevel.transform.GetChild(i).gameObject.SetActive(i < level + 5);
        }

        // 是否被选中
        _border.SetActive(false);

        // 金币 返回的物品
        int strengid    = _rune.getRune_strengthenId();
        int strenglevel = _data.GetStrenghLevel();
        int unqelID     = 0;

        money = 0;
        smelt = 0;
        if (strenglevel == 0)
        {
            money           = 0;
            smelt           = _rune.getRune_smelt();
            _smeltText.text = smelt.ToString();
        }

        if (strenglevel != 0)
        {
            smelt    = _rune.getRune_smelt();
            unqelID  = strengid * 100;
            unqelID += strenglevel;

            //
            RunecostTemplate runecost = (RunecostTemplate)DataTemplate.GetInstance().m_RunecostTable.getTableData(unqelID);
            if (runecost.getReturnType1() == 1400000002)
            {
                money += runecost.getReturnValue1();
            }
            else if (runecost.getReturnType1() == 1400000004)
            {
                smelt += runecost.getReturnValue1();
            }

            if (runecost.getReturnType2() == 1400000002)
            {
                money += runecost.getReturnValue2();
            }
            else if (runecost.getReturnType2() == 1400000004)
            {
                smelt += runecost.getReturnValue2();
            }
            _smeltText.text = smelt.ToString();
        }
    }
Exemplo n.º 8
0
    public void UpdateShow(int runeid, ItemTemplate rune)
    {
        if (rune == null)
        {
            return;
        }
        mRuneGUID = UI_RuneMange._instance.rune[runeid].GetItemGuid();

        runeName.text = GameUtils.getString(rune.getName());
        //runeIcon.overrideSprite = UIResourceMgr.LoadSprite(common.defaultPath + rune.getIcon());
        //runeIcon.transform.localScale = new Vector3(0.8f,0.8f,0f);
        //runeIcon.SetNativeSize();

        mIconItem.SetIcon(common.defaultPath + rune.getIcon());
        mIconItem.SetStarsNum(rune.getRune_quality());
        mIconItem.SetRuneType(rune.getRune_type());
        //int starCount = rune.getRune_quality();
        //for (int n = 0; n < mStarList.Count; n++)
        //{
        //    if (n == starCount - 1)
        //    {
        //        mStarList[n].SetActive(true);
        //    }
        //    else
        //    {
        //        mStarList[n].SetActive(false);
        //    }
        //}

        //for (int m = 1; m <= 4; m++)
        //{
        //    mTypes[m - 1].gameObject.SetActive(m == rune.getRune_type());
        //}

        mIconItem.SetIsSpecial(RuneModule.IsSpecialRune(rune));

        //GameUtils.DestroyChildsObj(mAttriList);
        ItemEquip data = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, mRuneGUID);

        //runeLevel.text = "+" + data.GetStrenghLevel();
        mIconItem.SetLevel(data.GetStrenghLevel());

        //装备人名字
        ObjectCard oc = ObjectSelf.GetInstance().HeroContainerBag.GetItemUser(data);

        if (oc == null)
        {
            userName.gameObject.SetActive(false);
        }
        else
        {
            HeroTemplate heroT = DataTemplate.GetInstance().GetHeroTemplateById(oc.GetHeroData().TableID);
            if (heroT != null)
            {
                userName.text = GameUtils.getString(heroT.getTitleID()) + "    " + GameUtils.getString("hero_rune_content7");
            }
            userName.gameObject.SetActive(true);
        }

        //是否满级;
        bool isFullLv = DataTemplate.GetInstance().IsRuneStrenthFullLevel(rune, data.GetStrenghLevel());

        GameUtils.SetBtnSpriteGrayState(intensifyBtn, isFullLv);
        showAtt.Clear();
        //--------基础属性;
        RuneData runeData = data.GetRuneData();
        bool     titleDone1 = false;
        int      split = 0;
        int      k = 0, p = 0;

        foreach (int id in runeData.BaseAttributeID)
        {
            if (id == -1)
            {
                continue;
            }

            if (!titleDone1)
            {
                k++;
                titleDone1 = true;
                CreateTitle(mAttriList, GameUtils.getString("hero_rune_content8"), k - 1);
            }
        }
        foreach (int id in runeData.BaseAttributeID)
        {
            if (id == -1)
            {
                continue;
            }
            BaseruneattributeTemplate bt = DataTemplate.GetInstance().GetBaseruneattributeTemplate(id);
            p++;
            if (bt.getNumshow() != 0)
            {
                CreateBaseAttriObj(mAttriList, GameUtils.getString(bt.getAttriDes()), "+" + bt.getAttriValue().ToString(), p - 1);
            }
        }
        //创建特殊服务的特效效果属性
        foreach (int id in runeData.BaseAttributeID)
        {
            if (id == -1)
            {
                continue;
            }
            BaseruneattributeTemplate bt = DataTemplate.GetInstance().GetBaseruneattributeTemplate(id);
            if (bt.getNumshow() == 0)
            {
                CreateDetailTxts(mAttriList, GameUtils.getString(bt.getAttriDes()));
            }
        }

        //--------附加属性;
        int  count      = DataTemplate.GetInstance().GetRuneMaxRedefineTimes(rune);
        bool titleDone2 = false;
        int  i      = 0;
        bool isGray = false;
        int  b      = 0;

        foreach (int id in runeData.AppendAttribute)
        {
            i++;

            isGray = i * 3 > data.GetStrenghLevel();

            if (id == -1)
            {
                if (i <= count)
                {
                    if (!titleDone2)
                    {
                        k++;
                        titleDone2 = true;
                        CreateTitle(mAttriList, GameUtils.getString("hero_rune_content9"), k - 1);
                    }
                    b++;
                    //未知属性,未鉴定;
                    CreateAddAttriObj(mAttriList, GameUtils.getString("rune_content2"), "", GameUtils.getString("rune_content3"), isGray, b - 1);
                }

                continue;
            }

            if (!titleDone2)
            {
                k++;
                titleDone2 = true;
                CreateTitle(mAttriList, GameUtils.getString("hero_rune_content9"), k - 1);
            }
            b++;
            AddruneattributeTemplate bt = DataTemplate.GetInstance().GetAddruneattributeTemplate(id);
            bool   isPercent            = bt.getIspercentage() > 0;
            string val = isPercent ? ((float)bt.getAttriValue() / (float)10f + "%") : bt.getAttriValue().ToString();
            CreateAddAttriObj(mAttriList, GameUtils.getString(bt.getAttriDes1()), GameUtils.getString(bt.getAttriDes2()), bt.getSymbol() + val, isGray, b - 1);
        }
        for (int m = 0; m < showAtt.Count; m++)
        {
            showAtt[m].SetActive(true);
        }

        //是否鉴定满级;
        GameUtils.SetBtnSpriteGrayState(authenticateBtn, data.GetDefineTimes() >= count);
    }
Exemplo n.º 9
0
    public void RuneShow()
    {
        //Debug.Log(tableID);

        if (itemState == ItemSate.Empty)
        {
            for (int i = 0; i < Parent.childCount; i++)
            {
                Parent.GetChild(i);
                if (i == 0)
                {
                    Parent.GetChild(i).gameObject.SetActive(true);
                }
                else
                {
                    Parent.GetChild(i).gameObject.SetActive(false);
                }
            }
            mySelfBtn.onClick.RemoveListener(new UnityEngine.Events.UnityAction(OnMyselfClick));
            return;
        }
        else if (itemState == ItemSate.Lock)
        {
            for (int i = 0; i < Parent.childCount; i++)
            {
                Parent.GetChild(i);
                if (i == 0 || i == 1)
                {
                    Parent.GetChild(i).gameObject.SetActive(true);
                }
                else
                {
                    Parent.GetChild(i).gameObject.SetActive(false);
                }
            }
            mySelfBtn.onClick.RemoveListener(new UnityEngine.Events.UnityAction(OnMyselfClick));
            return;
        }
        else if (itemState == ItemSate.FillDate)
        {
            Parent.FindChild("lock").gameObject.SetActive(false);
            Parent.FindChild("Border").gameObject.SetActive(false);
            maxLevel.SetActive(true);
            bg.SetActive(true);
            specBg.SetActive(true);
            mIcon.gameObject.SetActive(true);
            mName.gameObject.SetActive(true);
            Parent.FindChild("Level").gameObject.SetActive(true);
            Parent.FindChild("Equip").gameObject.SetActive(false);
            Parent.FindChild("Pos").gameObject.SetActive(true);
            Parent.FindChild("stars").gameObject.SetActive(true);
            mySelfBtn.onClick.RemoveAllListeners();
            mySelfBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnMyselfClick));
        }
        if (tableID == null)
        {
            return;
        }
        else
        {
            rune = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(tableID);
            //Debug.Log(rune.getIcon());
            mIcon.overrideSprite = UIResourceMgr.LoadSprite(common.defaultPath + rune.getIcon());
            // mIcon.SetNativeSize();
            mIcon.transform.localScale = new Vector3(0.8f, 0.8f, 0f);
            mName.text = GameUtils.getString(rune.getName());
            int starCount = rune.getRune_quality();

            bool isSpec = RuneModule.IsSpecialRune(rune);
            bg.SetActive(!isSpec);
            specBg.SetActive(isSpec);

            for (int i = 0; i < starCount; i++)
            {
                mStarList[i].SetActive(true);
            }

            for (int i = 1; i <= 4; i++)
            {
                mTypes[i - 1].gameObject.SetActive(i == rune.getRune_type());
            }

            for (int i = starCount; i < mStarList.Count; i++)
            {
                mStarList[i].SetActive(false);
            }
            m_CurItem = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, UI_RuneMange._instance.rune[id].GetItemGuid());
            bool isEquiped = m_CurItem.IsEquip();//ObjectSelf.GetInstance().HeroContainerBag.IsItemEquiped(data);
            mEquip.SetActive(isEquiped);
            mLevel.text = "+" + m_CurItem.GetStrenghLevel();

            //已满级
            int          strengthLv = m_CurItem.GetStrenghLevel();
            ItemTemplate itemT      = m_CurItem.GetItemRowData();
            bool         isFullLv   = DataTemplate.GetInstance().IsRuneStrenthFullLevel(itemT, strengthLv);
            if (isFullLv)
            {
                maxLevel.SetActive(true);
            }
            else
            {
                maxLevel.SetActive(false);
            }
            //设置符文满级特效颜色
            RawImage rawImage = maxLevel.GetComponent <RawImage>();
            switch (itemT.getRune_type())
            {
            case 1:     //蓝色
                rawImage.color = Color.blue;
                break;

            case 2:     //紫色
                rawImage.color = new Color(153 / 255f, 51 / 255f, 250 / 255f);
                break;

            case 3:     //绿色
                rawImage.color = Color.green;
                break;

            case 4:      //红色
                rawImage.color = Color.red;
                break;

            case 5:      //橙色
                rawImage.color = new Color(255 / 255f, 128 / 255f, 0 / 255f);
                break;

            default:
                break;
            }
            m_Tip.SetActive(ObjectSelf.GetInstance().CommonItemContainer.IsNewGetItem(m_CurItem.GetItemGuid()));
        }
    }
Exemplo n.º 10
0
    //public void SetRuneItemTableID(int id)
    //{
    //    if (id == -1)
    //    {
    //        SetRuneItemTemplate(null);
    //    }
    //    else
    //    {
    //        ItemTemplate itemT = DataTemplate.GetInstance().GetItemTemplateById(id);

    //        SetRuneItemTemplate(itemT);
    //    }
    //}

    public void SetRuneItemData(RuneItemCommonData data, RuneItemShowType type = RuneItemShowType.IconWithBg)
    {
        m_RuneCommonData = data;

        //icon点击没有回调事件,那么不阻止事件传递;
        m_IconItem.SetIsBlock(data.IconAction != null);
        //item点击没有回调事件,那么不阻止事件传递;
        SetIsItemBlock(data.ItemAction != null);

        ItemTemplate itemT = data.ItemT;

        switch (type)
        {
        case RuneItemShowType.IconOnly:
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(false);
            m_IconItem.SetActive(true);
            m_IconItem.SetLevelInfoActive(false);
            m_IconItem.SetIcon(common.defaultPath + itemT.getIcon());
            m_IconItem.SetRuneType(itemT.getRune_type());
            m_IconItem.SetIsSpecial(RuneModule.IsSpecialRune(itemT));
            m_levelObj.SetActive(false);
            m_Name.gameObject.SetActive(false);
            SetStarActive(false);
            m_NameObj.SetActive(false);

            SetPosition(Vector3.zero);
            break;

        case RuneItemShowType.IconWithBg:
            m_NameObj.SetActive(false);
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(true);

            if (itemT != null)
            {
                m_IconItem.SetActive(true);
                m_IconItem.SetIcon(common.defaultPath + itemT.getIcon());
                m_IconItem.SetRuneType(itemT.getRune_type());
                bool isSpec = RuneModule.IsSpecialRune(itemT);
                m_IconItem.SetIsSpecial(isSpec);
                m_EffectSpecImgObj.SetActive(isSpec);
                m_IconItem.SetStarsNum(itemT.getRune_quality());
                m_IconItem.SetLevel(data.RuneLevel);
                m_IconItem.SetLevelInfoActive(false);
                m_EffectRawImg.color = RuneManager.Inst.GetEffColor((EM_RUNE_TYPE)(itemT.getRune_type()));

                m_Name.text     = GameUtils.getString(itemT.getName());
                m_LevelTxt.text = "+" + data.RuneLevel;
                m_levelObj.SetActive(true);
                SetItemStarsNum(itemT.getRune_quality());

                if (data.IsShowMaxEffect)
                {
                    bool isMax = DataTemplate.GetInstance().IsRuneStrenthFullLevel(itemT, data.RuneLevel);
                    SetMaxLevelEffectActive(isMax);
                }
                else
                {
                    SetMaxLevelEffectActive(false);
                }
            }
            break;

        case RuneItemShowType.IconWithoutBg:
            m_NameObj.SetActive(false);
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(false);

            if (itemT != null)
            {
                m_IconItem.SetActive(true);
                m_IconItem.SetIcon(common.defaultPath + itemT.getIcon());
                m_IconItem.SetRuneType(itemT.getRune_type());
                m_IconItem.SetIsSpecial(RuneModule.IsSpecialRune(itemT));
                m_IconItem.SetStarsNum(itemT.getRune_quality());
                m_IconItem.SetLevel(data.RuneLevel);
                m_IconItem.SetLevelInfoActive(true);

                m_Name.text     = "";
                m_LevelTxt.text = "+" + data.RuneLevel;
                m_levelObj.SetActive(false);
                SetStarActive(false);
            }

            SetPosition(Vector3.zero);
            break;

        case RuneItemShowType.Null:
            m_NameObj.SetActive(false);
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(true);
            m_Name.text = "";
            m_levelObj.SetActive(false);
            m_IconItem.SetActive(false);
            SetStarActive(false);

            break;

        case RuneItemShowType.Locked:
            m_NameObj.SetActive(false);
            m_LockImgObj.SetActive(true);
            m_Bg.gameObject.SetActive(true);
            m_Name.text = "";
            m_levelObj.SetActive(false);
            m_IconItem.SetActive(false);
            SetStarActive(false);

            break;

        case RuneItemShowType.AddWithoutBg:
            m_NameObj.SetActive(false);
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(true);
            m_Name.text = "";
            m_levelObj.SetActive(false);
            SetStarActive(false);

            m_IconItem.SetActive(true);
            m_IconItem.SetLevelInfoActive(false);
            m_IconItem.SetRuneType(EM_RUNE_TYPE.EM_RUNE_TYPE_INVALID);
            m_IconItem.ShowAddIcon();

            SetPosition(Vector3.zero);
            break;

        case RuneItemCommon.RuneItemShowType.IconWithRightName:
            m_NameObj.SetActive(true);
            m_LockImgObj.SetActive(false);
            m_Bg.gameObject.SetActive(false);

            if (itemT != null)
            {
                m_IconItem.SetActive(true);
                m_IconItem.SetIcon(common.defaultPath + itemT.getIcon());
                m_IconItem.SetRuneType(itemT.getRune_type());
                m_IconItem.SetIsSpecial(RuneModule.IsSpecialRune(itemT));
                m_IconItem.SetStarsNum(itemT.getRune_quality());
                m_IconItem.SetLevel(data.RuneLevel);
                m_IconItem.SetLevelInfoActive(true);
                m_IconItem.SetSize(RuneIconItemSize.Big);

                m_Name.text     = "";
                m_LevelTxt.text = "+" + data.RuneLevel;
                m_levelObj.SetActive(false);
                SetStarActive(false);
                m_RuneNameTxt.text = GameUtils.getString(itemT.getName());
                if (string.IsNullOrEmpty(data.EquipedHeroName))
                {
                    m_EquipHeroNameTxt.gameObject.SetActive(false);
                }
                else
                {
                    m_EquipHeroNameTxt.gameObject.SetActive(true);
                    m_EquipHeroNameTxt.text = data.EquipedHeroName;
                }
                m_SpecTxt.text = GameUtils.getString(itemT.getSpecialHeroDes());
            }

            SetPosition(Vector3.zero);
            break;

        default:
            break;
        }
    }