Example #1
0
    public void Refresh()
    {
        if (curSignItem == SignItemState.isSigned)
        {
            obj_Signed.SetActive(true);
            Bg_ItemSp.color = Color.white;
        }
        else if (curSignItem == SignItemState.isNotSigned)
        {
            Bg_ItemSp.color = Color.white;
            obj_Signed.SetActive(false);
        }
        else if (curSignItem == SignItemState.isWaitSigned)
        {
            obj_Signed.SetActive(false);
            Bg_ItemSp.color = WaitColor;
        }


        if (itemValue.vip != 0)
        {
            obj_vipTitle.SetActive(true);
            lbl_VipDouble.text = "[FFC100]v" + itemValue.vip + Core.Data.stringManager.getString(7303);
        }
        else
        {
            obj_vipTitle.SetActive(false);
        }

        lbl_gifNum.text   = ItemNumLogic.setItemNum(giftNum, lbl_gifNum, lbl_gifNumBg); // yangchenguang
        lbl_GiftName.text = myName;
    }
Example #2
0
    public void Refresh()
    {
        lbl_GiftNum.text = ItemNumLogic.setItemNum(num, lbl_GiftNum, lbl_GiftNumBg);    //yangcg 计算(道具个数)背景的大小

        switch (curItemState)
        {
        case LevelRewardCollection.CollectionState.LockReward:
            bg_Gift.color      = Color.grey;
            bg_lab.color       = Color.grey;
            spt_GiftIcon.color = Color.grey;
            // lbl_GiftName.color =Color.grey;
            break;

        case LevelRewardCollection.CollectionState.UnlockReward:
            bg_Gift.color      = Color.white;
            bg_lab.color       = Color.white;
            spt_GiftIcon.color = Color.white;
            //   lbl_GiftName.color = Color.white;
            bg_Gift.color = lblColor;
            break;

        case LevelRewardCollection.CollectionState.GotReward:
            bg_Gift.color      = Color.white;
            bg_lab.color       = Color.white;
            spt_GiftIcon.color = Color.white;
            // lbl_GiftName.color = Color.white;
            bg_Gift.color = lblColor;
            break;

        default:
            break;
        }
    }
Example #3
0
    void SetItemDetail(List <int[]> _award)
    {
        if (_award.Count == 0)
        {
            return;
        }
        if (_award[0].Length < 2)
        {
            return;
        }


        SetIconDetail(mIconUp, _award[0][0], mNameUp, mStar1);
        mNumUp.SafeText(ItemNumLogic.setItemNum(_award[0][1], mNumUp, mNumUpBg));

        if (_award.Count >= 2)
        {
            if (_award[1].Length < 2)
            {
                return;
            }
            SetIconDetail(mIconDown, _award[1][0], mNameDown, mStar2);
            mNumDown.SafeText(ItemNumLogic.setItemNum(_award[1][1], mNumDown, mNumDownBg));

            SetIconDetail(mIconUp1, _award[2][0], mNameUp1, mStar3);
            mNumUp1.SafeText(ItemNumLogic.setItemNum(_award[2][1], mNumUp1, mNumUp1Bg));

            SetIconDetail(mIconDown1, _award[3][0], mNameDown1, mStar4);
            mNumDown1.SafeText(ItemNumLogic.setItemNum(_award[3][1], mNumDown1, mNumDown1Bg));
        }
    }
Example #4
0
 public void Refresh()
 {
     lblName.text     = strName;
     lblGiftNum.text  = ItemNumLogic.setItemNum(giftNum, lblGiftNum, LblGiftNumBg);   //yangcg
     lblHonorNum.text = needHonorNum.ToString();
     this.ShiftChargeSp();
     this.SetGiftSpt();
 }
Example #5
0
 public void Refresh()
 {
     if (myData != null)
     {
         lblNum.text = ItemNumLogic.setItemNum(myData.num, lblNum, lblBg);//yangcg
         SetDetail(myData.pid);
     }
 }
Example #6
0
    void ShowIcon()
    {
        if (m_nIndex >= m_data.Length)
        {
            return;
        }
        ItemOfReward reward = m_data [m_nIndex];

        if (reward.getCurType() == ConfigDataType.Monster)
        {
            Monster data = reward.toMonster(Core.Data.monManager);
            rewardName.text = data.config.name;
            AtlasMgr.mInstance.SetHeadSprite(rewardIcon, data.num.ToString());
        }
        else if (reward.getCurType() == ConfigDataType.Equip)
        {
            Equipment data = reward.toEquipment(Core.Data.EquipManager, Core.Data.gemsManager);
            rewardName.text       = data.ConfigEquip.name;
            rewardIcon.atlas      = AtlasMgr.mInstance.equipAtlas;
            rewardIcon.spriteName = data.Num.ToString();
        }
        else if (reward.getCurType() == ConfigDataType.Gems)
        {
            Gems data = reward.toGem(Core.Data.gemsManager);
            rewardName.text       = data.configData.name;
            rewardIcon.atlas      = AtlasMgr.mInstance.commonAtlas;
            rewardIcon.spriteName = data.configData.anime2D;
        }
        else if (reward.getCurType() == ConfigDataType.Item)
        {
            Item item = reward.toItem(Core.Data.itemManager);
            rewardName.text  = item.configData.name;
            rewardIcon.atlas = AtlasMgr.mInstance.itemAtlas;
//            rewardIcon.spriteName = item.RtData.num.ToString ();
            rewardIcon.spriteName = item.configData.iconID.ToString();
        }
        else if (reward.getCurType() == ConfigDataType.Frag)
        {
            Soul soul = reward.toSoul(Core.Data.soulManager);
            rewardName.text       = soul.m_config.name;
            rewardIcon.atlas      = AtlasMgr.mInstance.itemAtlas;
            rewardIcon.spriteName = soul.m_RTData.num.ToString();
        }
        else
        {
            RED.LogWarning("unknow reward type");
        }
        rewardIcon.MakePixelPerfect();

        rewardNum.text = ItemNumLogic.setItemNum(reward.num, rewardNum, rewardNum.gameObject.transform.parent.gameObject.GetComponent <UISprite>());  // yangchenguang
    }
Example #7
0
    public override void freshBoxItemWithData(object obj)
    {
        base.freshBoxItemWithData(obj);
        curItem     = obj as Item;
        curItemType = RUIType.EMItemType.Props;
        if (curItem != null)
        {
            this.gameObject.name = curItem.RtData.id.ToString();
            lab_name.text        = curItem.configData.name;


            lal_count.text = ItemNumLogic.setItemNum(curItem.RtData.count, lal_count, lal_count.gameObject.transform.parent.gameObject.GetComponent <UISprite>()); //yangcg
//			sp_head.spriteName = curItem.RtData.num.ToString ();
            sp_head.spriteName = curItem.configData.iconID.ToString();
        }
    }
Example #8
0
    public void SetData(int[] award)
    {
        if (award == null || award.Length == 0)
        {
            return;
        }

        ConfigDataType type = DataCore.getDataType(award[0]);

        switch (type)
        {
        case ConfigDataType.Item:
        {
            ItemData data = Core.Data.itemManager.getItemData(award[0]);
            if (data != null)
            {
                Spr_head.atlas      = AtlasMgr.mInstance.itemAtlas;
                Spr_head.spriteName = award[0].ToString();
                Lab_Name.text       = data.name;
                star.SetStar(data.star);
            }
            break;
        }

        case ConfigDataType.Monster:
        {
            MonsterData data = Core.Data.monManager.getMonsterByNum(award[0]);
            if (data != null)
            {
                AtlasMgr.mInstance.SetHeadSprite(Spr_head, award[0].ToString());
                Lab_Name.text = data.name;
                star.SetStar(data.star);
            }
            break;
        }

        case ConfigDataType.Equip:
        {
            EquipData data = Core.Data.EquipManager.getEquipConfig(award[0]);
            if (data != null)
            {
                Spr_head.atlas      = AtlasMgr.mInstance.equipAtlas;
                Spr_head.spriteName = data.ID.ToString();
                Lab_Name.text       = data.name;
                star.SetStar(data.star);
            }
            break;
        }

        case ConfigDataType.Gems:
        {
            GemData data = Core.Data.gemsManager.getGemData(award[0]);
            if (data != null)
            {
                Spr_head.atlas      = AtlasMgr.mInstance.commonAtlas;
                Spr_head.spriteName = data.anime2D;
                Lab_Name.text       = data.name;
                star.SetStar(data.star);
            }
            break;
        }

        case ConfigDataType.Frag:
        {
            SoulData data = Core.Data.soulManager.GetSoulConfigByNum(award[0]);
            switch ((ItemType)data.type)
            {
            case ItemType.Earth_Frage:
            case ItemType.Nameike_Frage:
                Spr_head.atlas      = AtlasMgr.mInstance.itemAtlas;
                Spr_head.spriteName = data.ID.ToString();
                break;

            case ItemType.Monster_Frage:
                AtlasMgr.mInstance.SetHeadSprite(Spr_head, data.updateId.ToString());
                break;
            }

            Lab_Name.text = data.name;
            star.SetStar(data.star);
            break;
        }
        }
        Spr_head.MakePixelPerfect();

        LabNum.text = ItemNumLogic.setItemNum(award[1], LabNum, Spr_Num);
        //award[1].ToString();
        gameObject.name = award[0].ToString();

        isEnable = System.Convert.ToBoolean(award[2]);
    }
Example #9
0
    //初始化数据
    private void Init(int leftItemNum, int rightItemNum, int type = 0)
    {
        /*今日剩余次数
         * */
        Spr_Item[0].transform.parent.parent.parent.name = leftItemNum.ToString() + "_0";
        Spr_Item[1].transform.parent.parent.parent.name = rightItemNum.ToString() + "_1";
        this.leftItemNum  = leftItemNum;
        this.rightItemNum = rightItemNum;
        this.type         = type;

        ItemData item1  = Core.Data.itemManager.getItemData(leftItemNum);
        ItemData item2  = Core.Data.itemManager.getItemData(rightItemNum);
        string   strtxt = "";

        Lab_DataUseCount.text = "";

        //type 0:精力  1:体力   2:金币  3:武器经验 4:人物经验
        if (type == JingLing)
        {
            int eCount = Core.Data.playerManager.dayStatus.buyEnyCount;


            listBuyE = Core.Data.vipManager.GetBuyEnergyDataConfig();
            BuyEnergy buyEnergy;
            if (eCount >= listBuyE.Count)
            {
                buyEnergy = listBuyE[listBuyE.Count - 1];
            }
            else
            {
                buyEnergy = listBuyE[eCount];
            }

            Physical          = PhysicalObj.GetComponent <PhysicalLogic>();
            Physical.stoneNum = buyEnergy.cost_D;
            Obj_content.SetActive(false);
            PhysicalObj.SetActive(true);

            DataUseCount = Core.Data.vipManager.GetVipInfoData(Core.Data.playerManager.curVipLv).buy - eCount;
            // 今日次数
            Lab_DataUseCount.text  = Core.Data.stringManager.getString(9040) + eCount.ToString() + "/" + Core.Data.vipManager.GetVipInfoData(Core.Data.playerManager.curVipLv).buy.ToString();
            Physical.dayCount.text = Lab_DataUseCount.text;
            strtxt = Core.Data.stringManager.getString(6133);

            strtxt = string.Format(strtxt, buyEnergy.cost_D, buyEnergy.num);
            Physical.uilabel_1.text = strtxt;

            return;
        }
        else if (type == TiLi)
        {
            DataUseCount          = Core.Data.vipManager.GetVipInfoData(Core.Data.playerManager.curVipLv).staminaItemLimit - Core.Data.playerManager.dayStatus.tlUse;
            Lab_DataUseCount.text = Core.Data.stringManager.getString(9040) + Core.Data.playerManager.dayStatus.tlUse.ToString() + "/" + Core.Data.vipManager.GetVipInfoData(Core.Data.playerManager.curVipLv).buy.ToString();
        }

        //getItemCount(leftItemNum,type);

        /*110015 火鸡腿       110017 凤梨
         * */
        //110019 一袋金币 110020 一箱金币
        //110044 白银棍x10   110046 白银护腕x10
        //110061  银猪   110029 银猪包


        //Core.Data.itemManager.GetBagItemCount(item2.ID).ToString();

        Spr_Item[0].spriteName = item1.ID.ToString();
        Spr_Item[0].MakePixelPerfect();
        Lab_Name[0].text = item1.name;
        if (leftItemNum == 110019)//一袋金币
        {
            Lab_Count[0].text = "";
            Lab_Count[1].text = "";
            tsList[0].gameObject.SetActive(false);
            tsList[1].gameObject.SetActive(false);
        }
        else if (leftItemNum == 110041)//白银棍
        {
            Lab_Count[0].text = "";
            tsList[0].gameObject.SetActive(false);


            Lab_Count[1].text = ItemNumLogic.setItemNum(item2.num2[0][3], Lab_Count[1], tsList[1].gameObject.GetComponent <UISprite>());
        }
        else if (leftItemNum == 110061) //银猪
        {
            Lab_Count[0].text = "";
            tsList[0].gameObject.SetActive(false);

            Lab_Count[1].text = ItemNumLogic.setItemNum(10, Lab_Count[1], tsList[1].gameObject.GetComponent <UISprite>());
        }
        else if (leftItemNum == 110039)  // 白银护腕
        {
            Lab_Count[0].text = "";
            tsList[0].gameObject.SetActive(false);

            Lab_Count[1].text = ItemNumLogic.setItemNum(item2.num2[0][3], Lab_Count[1], tsList[1].gameObject.GetComponent <UISprite>());
        }

        Price_Label[0].text = item1.price[1].ToString();
        starList[0].SetStar(item1.star);

        /*110016 烤全猪        110018 仙豆
         * */
        Spr_Item[1].spriteName = item2.ID.ToString();
        Spr_Item[1].MakePixelPerfect();
        Lab_Name[1].text = item2.name;
        //Lab_Count[1].text = "x"+10;
        Price_Label[1].text = item2.price[1].ToString();
        starList[1].SetStar(item2.star);



        SelectOne(leftItemNum, cur_Selected);
    }
Example #10
0
    public void Init(SockLoginFestivalData data)
    {
        if (data.times == 1)
        {
            leaveNextTime.text = Core.Data.stringManager.getString(7136);
            isFree             = true;
        }
        else if (data.times == 0)
        {
            isFree   = false;
            timeLeft = long.Parse(data.freeTime);
            string output = "";
            output += (timeLeft / 3600).ToString("d2");
            long l = (long)timeLeft % 3600;
            output += ":" + (l / 60).ToString("d2");
            l       = (long)l % 60;
            output += ":" + l.ToString("d2");
            //  Debug.Log (output);
            leaveNextTime.text = output;
            this.TimerCounting(long.Parse(data.nowTime), Core.TimerEng.curTime + long.Parse(data.freeTime), 1);

            InvokeRepeating("TimeLblCtrl", 0, 1);
        }
        if (data.stoneTimes == 1)
        {
            isStoneFree = true;
        }
        else
        {
            isStoneFree = false;
        }
        startDate = long.Parse(data.startTime);
        endDate   = long.Parse(data.endTime);
        this.ActivityDateCtrl();
        curScore.text = data.jifen.ToString();

        if (data.wzTimes > 0)
        {
            lblMoneyBtn.text = Core.Data.stringManager.getString(5070) + "(" + data.wzTimes + "/10)";
        }
        else if (data.stoneTimes == 1)
        {
            lblMoneyBtn.text = Core.Data.stringManager.getString(5070);
        }

        bestMonster = Core.Data.monManager.getMonsterByNum(data.goodId);

        this.AnalysisICon(data.goodId);

        this.BtnCtrl();
        blackPic.gameObject.SetActive(false);
        UILabel tNum = objNum.GetComponentInChildren <UILabel>();

        if (data.goodNum > 0)
        {
            objNum.SetActive(true);
            tNum.text = ItemNumLogic.setItemNum(data.goodNum, tNum, objNum.GetComponent <UISprite> ());             // yangchenguang
        }
        else
        {
            objNum.SetActive(false);
        }
    }
    public void OnShow(SecretShopDataStruct data)
    {
        if (data == null)
        {
            gameObject.SetActive(false);
            return;
        }
        else
        {
            gameObject.SetActive(true);
        }

        mdata = data;

        mItemIcon.gameObject.SetActive(true);
        mItemNum.gameObject.SetActive(true);
        mItemName.gameObject.SetActive(true);
        mChoose.gameObject.SetActive(true);

        GetObject(data.num);

        SetItemStatus();
        SetItemPrice();

        titleObj.SetActive(true);

        if (mdata.type == 1)
        {
            spDiscountTitle.spriteName = "sc_msz_dz";
        }
        else if (mdata.type == 2)
        {
            spDiscountTitle.spriteName = "sc_msz_dj1";
        }
        else if (mdata.type == 0)
        {
            titleObj.SetActive(false);
        }

        mChoose.gameObject.SetActive(false);

        mItemName.text = str;

        mSoulIcon.gameObject.SetActive(false);
        mItemNum.text = ItemNumLogic.setItemNum(mdata.count, mItemNum, mItemNum.gameObject.transform.parent.gameObject.GetComponent <UISprite>());
        ConfigDataType datatype = DataCore.getDataType(data.num);

        if (datatype == ConfigDataType.Monster)
        {
            AtlasMgr.mInstance.SetHeadSprite(mItemIcon, data.num.ToString());
            mItemIcon.MakePixelPerfect();
            return;
        }
        else if (datatype == ConfigDataType.Equip)
        {
            mItemIcon.atlas = AtlasMgr.mInstance.equipAtlas;
        }
        else if (datatype == ConfigDataType.Gems)
        {
            mItemIcon.atlas = AtlasMgr.mInstance.commonAtlas;
        }
        else if (datatype == ConfigDataType.Item)
        {
            mItemIcon.atlas = AtlasMgr.mInstance.itemAtlas;
        }
        else if (datatype == ConfigDataType.Frag)
        {
            SoulInfo info = new SoulInfo(0, data.num, data.count);
            Soul     soul = new Soul();
            soul.m_config = Core.Data.soulManager.GetSoulConfigByNum(info.num);
            soul.m_RTData = info;
            if (soul.m_config.type == (int)ItemType.Monster_Frage)
            {
                MonsterData mon = Core.Data.monManager.getMonsterByNum(soul.m_config.updateId);
                if (mon != null)
                {
                    mSoulIcon.gameObject.SetActive(true);
                    AtlasMgr.mInstance.SetHeadSprite(mItemIcon, mon.ID.ToString());
                    mItemIcon.MakePixelPerfect();
                    mSoulIcon.spriteName = "bag-0003";
                }
            }
            else if (soul.m_config.type == (int)ItemType.Equip_Frage)
            {
                EquipData equip = Core.Data.EquipManager.getEquipConfig(soul.m_config.updateId);
                if (equip != null)
                {
                    mSoulIcon.gameObject.SetActive(true);
                    mItemIcon.atlas      = AtlasMgr.mInstance.equipAtlas;
                    mItemIcon.spriteName = soul.m_config.updateId.ToString();
                    mItemIcon.MakePixelPerfect();
                    mSoulIcon.spriteName = "sui";
                }
            }
            else
            {
                mItemIcon.atlas      = AtlasMgr.mInstance.itemAtlas;
                mItemIcon.spriteName = soul.m_RTData.num.ToString();
            }
            return;
        }
        else
        {
            RED.LogWarning("unknow reward type");
        }

        if (datatype == ConfigDataType.Gems)
        {
            GemsManager gemsMgr = Core.Data.gemsManager;
            if (gemsMgr != null)
            {
                GemData Gdata = gemsMgr.getGemData(mdata.num);
                if (Gdata != null)
                {
                    mItemIcon.spriteName = Gdata.anime2D;
                }
            }
        }
        else if (datatype == ConfigDataType.Item)
        {
            ItemData item = Core.Data.itemManager.getItemData(mdata.num);
            if (item != null)
            {
                mItemIcon.spriteName = item.iconID.ToString();
            }
        }
        else
        {
            mItemIcon.spriteName = mdata.num.ToString();
        }

        mItemIcon.MakePixelPerfect();
    }
Example #12
0
    public void InitUI(ItemOfReward reward)
    {
        m_date     = reward;
        ShowTxtCnt = true;
        if (reward.getCurType() == ConfigDataType.Monster)
        {
            Monster data = reward.toMonster(Core.Data.monManager);
            ShowMonster(data);
        }
        else if (reward.getCurType() == ConfigDataType.Equip)
        {
            Equipment data = reward.toEquipment(Core.Data.EquipManager, Core.Data.gemsManager);
            ShowEquip(data);
        }
        else if (reward.getCurType() == ConfigDataType.Gems)
        {
            Gems data = reward.toGem(Core.Data.gemsManager);
            ShowGem(data);
        }
        else if (reward.getCurType() == ConfigDataType.Frag)
        {
            Soul data = reward.toSoul(Core.Data.soulManager);
            ShowFrag(data);
//			if (data.m_config.type == (int)ItemType.Monster_Frage)
//			{
//				ShowSoul (data);
//			}
//			else if(data.m_config.type == (int)ItemType.Nameike_Frage || data.m_config.type == Earth_Frage)
//			{
//				ShowFrag(data);
//			}
        }
        else if (reward.getCurType() == ConfigDataType.Item)
        {
            Item item = reward.toItem(Core.Data.itemManager);

            if (reward.showpid != 0)
            {
                ConfigDataType type = DataCore.getDataType(reward.pid);
                if (type == ConfigDataType.Item)
                {
                    Item realItem = new Item();
                    realItem.RtData     = new ItemInfo();
                    realItem.RtData.num = reward.pid;
                    realItem.configData = Core.Data.itemManager.getItemData(reward.pid);
                    ShowItem(realItem);
                }
                else if (type == ConfigDataType.Frag)
                {
                    Soul soul = new Soul();
                    soul.m_RTData       = new SoulInfo();
                    soul.m_RTData.num   = reward.pid;
                    soul.m_RTData.count = 1;
                    soul.m_config       = Core.Data.soulManager.GetSoulConfigByNum(reward.pid);
                    ShowFrag(soul);
                }
            }
            else
            {
                ShowItem(item);
            }
        }
        else if (reward.getCurType() == ConfigDataType.Frag)
        {
            Soul soul = reward.toSoul(Core.Data.soulManager);
            ShowFrag(soul);
        }
        else
        {
            RED.LogWarning("unknow reward type");
        }

        if (ShowTxtCnt)
        {
            RED.SetActive(reward.num > 1, m_cntRoot);
        }
        else
        {
            RED.SetActive(false, m_cntRoot);
        }

        m_txtCnt.text = ItemNumLogic.setItemNum(reward.num, m_txtCnt, m_cntRoot.GetComponent <UISprite>()); // yangchenguang
        m_spIcon.MakePixelPerfect();
    }
Example #13
0
    //add by wxl
    void SetInfo(UITaskRewardData data)
    {
        switch (DataCore.getDataType(data.Reward_ItemID))
        {
        case ConfigDataType.Item:
            Spr_Head.atlas = AtlasMgr.mInstance.itemAtlas;

            ItemData tItem = Core.Data.itemManager.getItemData(data.Reward_ItemID);

            if (tItem != null)
            {
                Lab_Name.text = tItem.name;
                if (tItem.ID == 110185)
                {
                    Spr_Head.atlas      = AtlasMgr.mInstance.commonAtlas;
                    Spr_Head.spriteName = "jifen";
                    Spr_Head.height     = 58;
                    Spr_Head.width      = 58;
                }
                else
                {
                    Spr_Head.atlas = AtlasMgr.mInstance.itemAtlas;
                    if (tItem.ID != 110052 || tItem.ID != 110051)
                    {
                        //                        Spr_Head.spriteName = tItem.ID.ToString();
                        Spr_Head.spriteName = tItem.iconID.ToString();
                    }
                    else
                    {
                        //                        Spr_Head.spriteName = tItem.ID.ToString();
                        Spr_Head.spriteName = tItem.iconID.ToString();
                    }
                    Spr_Head.MakePixelPerfect();
                }
            }
            Lab_Num.text = ItemNumLogic.setItemNum(data.Reward_ItemCount, Lab_Num, Lab_Num.gameObject.transform.parent.gameObject.GetComponent <UISprite>());                     //yangcg 计算(道具个数)背景的大小
            return;

        case ConfigDataType.Frag:
            SoulData sd = Core.Data.soulManager.GetSoulConfigByNum(data.Reward_ItemID);
            if (sd != null)
            {
                AtlasMgr.mInstance.SetHeadSprite(Spr_Head, sd.updateId.ToString());
                Lab_Name.text = sd.name;
            }
            break;

        case ConfigDataType.Equip:
            EquipData ed = Core.Data.EquipManager.getEquipConfig(data.Reward_ItemID);
            if (ed != null)
            {
                Spr_Head.atlas      = AtlasMgr.mInstance.equipAtlas;
                Spr_Head.spriteName = ed.ID.ToString();
                Lab_Name.text       = ed.name;
            }
            break;

        case ConfigDataType.Monster:

            MonsterData md = Core.Data.monManager.getMonsterByNum(data.Reward_ItemID);
            if (md != null)
            {
                AtlasMgr.mInstance.SetHeadSprite(Spr_Head, md.ID.ToString());    // yangchenguang
                Lab_Name.text = md.name;
            }
            break;

        case ConfigDataType.Gems:
            GemData gd = Core.Data.gemsManager.getGemData(data.Reward_ItemID);
            if (gd != null)
            {
                Spr_Head.atlas      = AtlasMgr.mInstance.commonAtlas;
                Spr_Head.spriteName = gd.anime2D.ToString();
                Lab_Name.text       = gd.name;
            }
            break;
        }

        Lab_Num.text = ItemNumLogic.setItemNum(data.Reward_ItemCount, Lab_Num, Lab_Num.gameObject.transform.parent.gameObject.GetComponent <UISprite>()); //yangcg 计算(道具个数)背景的大小
        Spr_Head.MakePixelPerfect();
    }