private string GetBottleIcon(int _lv)
        {
            Dictionary <string, SysMagicbottleExpVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleExpVo>();
            int num = Tools_ParsePrice.Level_Check <SysMagicbottleExpVo>(_lv, typeDicByType, false);

            return(BaseDataMgr.instance.GetDataById <SysMagicbottleExpVo>(num.ToString()).smallIcon);
        }
Exemplo n.º 2
0
 private void ActionLevelUp(MobaMessage msg)
 {
     if (msg != null)
     {
         int num = (int)msg.Param;
         if (num != 0)
         {
             if (Tools_ParsePrice.IsCollectorBottleUp(this.currlevel, num))
             {
                 this.CountCollect++;
                 this.collectGetFX.gameObject.SetActive(false);
                 this.collectGetFX.gameObject.SetActive(true);
                 AudioMgr.Play("Play_DCP_Levelup", null, false, false);
             }
             this.currlevel = num;
             if (this.currlevel % 3 == 0)
             {
                 this.CountLegend++;
                 this.legendGetFX.gameObject.SetActive(false);
                 this.legendGetFX.gameObject.SetActive(true);
                 AudioMgr.Play("Play_CSP_Levelup", null, false, false);
             }
             this.RefreshDesUI();
         }
     }
 }
Exemplo n.º 3
0
        private void ParseDetail(int level)
        {
            int num = Tools_ParsePrice.ParseCollectRange(level, false);

            if (num == 0)
            {
                num = 10;
            }
            string text = string.Empty;

            string[] array = new string[]
            {
                string.Empty
            };
            text = BaseDataMgr.instance.GetDataById <SysMagicbottleLevelVo>(num.ToString()).viewItems;
            if (!string.IsNullOrEmpty(text))
            {
                array = text.Split(new char[]
                {
                    ','
                });
            }
            if (array != null && array.Length != 0)
            {
                this.TableSource(array[this.position]);
                this.AllotFrame(array[this.position]);
            }
        }
Exemplo n.º 4
0
        private void RefreshDesUI()
        {
            if (this.info == null)
            {
                this.info = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleLevelVo>();
            }
            int num = Tools_ParsePrice.MaxLevelCheck <SysMagicbottleLevelVo>(this.info, false);
            int num2;

            if (this.currlevel >= num)
            {
                SysMagicbottleLevelVo dataById = BaseDataMgr.instance.GetDataById <SysMagicbottleLevelVo>(num.ToString());
                int lastLevelDefference        = dataById.lastLevelDefference;
                num2 = ((this.currlevel - num) / lastLevelDefference + 1) * lastLevelDefference + num;
            }
            else
            {
                num2 = Tools_ParsePrice.ParseCollectRange(this.currlevel, true);
            }
            string str      = "[00ff00]/" + 3 + "[-]";
            string str2     = string.Empty;
            string newValue = string.Empty;
            int    num3     = (this.currlevel % 3 != 0) ? (this.currlevel % 3) : 3;

            str2     = "[ff0000]" + num3 + "[-]";
            newValue = "[00ff00]" + num2 + "[-]";
            string stringById  = LanguageManager.Instance.GetStringById("MagicBottle_NomalOpenTips");
            string stringById2 = LanguageManager.Instance.GetStringById("MagicBottle_GoodOpenTips");

            this.descriptionLen      = stringById.Replace("*", str2 + str);
            this.descriptianCol      = stringById2.Replace("*", newValue);
            this.textDesLegend.text  = this.descriptionLen;
            this.textDesCollect.text = this.descriptianCol;
        }
    public static string BottleRewardParse(int level)
    {
        Dictionary <string, SysMagicbottleRankrewardsVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleRankrewardsVo>();
        int num = Tools_ParsePrice.Level_Check <SysMagicbottleRankrewardsVo>(level, typeDicByType, false);

        if (typeDicByType != null)
        {
            return(num.ToString());
        }
        return(null);
    }
Exemplo n.º 6
0
    private void SetMagicInfo(MagicBottleRankData rankData)
    {
        base.gameObject.name = rankData.userid + "|" + rankData.rank.ToString();
        SysSummonersHeadportraitVo dataById = BaseDataMgr.instance.GetDataById <SysSummonersHeadportraitVo>(rankData.icon.ToString());

        if (dataById != null)
        {
            this.Portrait.spriteName = dataById.headportrait_icon;
        }
        SysSummonersPictureframeVo dataById2 = BaseDataMgr.instance.GetDataById <SysSummonersPictureframeVo>(rankData.pictureFrame.ToString());

        if (dataById2 != null)
        {
            this.Frame.spriteName = dataById2.pictureframe_icon;
        }
        this.SummonerLv.text            = rankData.level.ToString();
        this._mName.text                = rankData.name;
        this.MagicBottleLv.text         = rankData.magicbottlelevel.ToString() + "级";
        this.MagicBottleExp.text        = rankData.todayexp.ToString();
        this.MagicBottleIcon.spriteName = Tools_ParsePrice.BottleLevelParse(rankData.magicbottlelevel);
        if (rankData.rank == 1)
        {
            this.Bg.spriteName = "Ranking_list_bg_02";
            this._mName.color  = new Color32(212, 254, 249, 255);
            this.MagicBottleIcon.transform.Find("bg").GetComponent <UISprite>().color = new Color32(52, 12, 0, 155);
            this.MagicBottleExp.transform.Find("bg").GetComponent <UISprite>().color  = new Color32(52, 12, 0, 155);
        }
        else
        {
            this.Bg.spriteName = "Ranking_list_bg_01";
            this._mName.color  = new Color32(212, 254, 249, 255);
            this.MagicBottleIcon.transform.Find("bg").GetComponent <UISprite>().color = new Color32(0, 18, 52, 155);
            this.MagicBottleExp.transform.Find("bg").GetComponent <UISprite>().color  = new Color32(0, 18, 52, 155);
        }
        if (rankData.rank <= 3 && rankData.rank > 0)
        {
            this.RankSprite.gameObject.SetActive(true);
            this.RankLabel.gameObject.SetActive(false);
            this.RankSprite.spriteName = "Ranking_images_number_" + rankData.rank.ToString();
        }
        else
        {
            this.RankSprite.gameObject.SetActive(false);
            this.RankLabel.gameObject.SetActive(true);
            this.RankLabel.text = rankData.rank.ToString();
        }
        if (rankData.userid == ModelManager.Instance.Get_userData_X().UserId)
        {
            this._mName.color = new Color32(214, 7, 182, 255);
            this._mName.text  = ModelManager.Instance.Get_userData_filed_X("NickName");
        }
        this._mName.GetComponent <AllochroicLabelChecker>().RenderLabel(rankData.CharmRankValue);
        this._mName.text = rankData.name;
    }
    public static string BottleLevelParse(int level)
    {
        Dictionary <string, SysMagicbottleExpVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleExpVo>();
        int num = Tools_ParsePrice.Level_Check <SysMagicbottleExpVo>(level, typeDicByType, false);

        if (typeDicByType != null)
        {
            return(typeDicByType[num.ToString()].largeIcon);
        }
        return(null);
    }
    public static long BottleMaxExp(int level)
    {
        long result = 0L;
        Dictionary <string, SysMagicbottleExpVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleExpVo>();

        if (typeDicByType != null)
        {
            result = (long)typeDicByType[Tools_ParsePrice.Level_Check <SysMagicbottleExpVo>(level, typeDicByType, false).ToString()].exp;
        }
        return(result);
    }
    public static int ParseCollectRange(int level, bool isDown = false)
    {
        int result = 0;
        Dictionary <string, SysMagicbottleLevelVo> dictionary = new Dictionary <string, SysMagicbottleLevelVo>();

        dictionary = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleLevelVo>();
        if (dictionary != null)
        {
            result = Tools_ParsePrice.Level_Check <SysMagicbottleLevelVo>(level, dictionary, isDown);
        }
        return(result);
    }
Exemplo n.º 10
0
    public static string StringPrice(List <GoodsData> goodsData)
    {
        if (goodsData.Count == 1)
        {
            return(goodsData[0].Price);
        }
        List <float> info         = Tools_ParsePrice.ParsePrice(goodsData[0].Price);
        List <float> info_another = Tools_ParsePrice.ParsePrice(goodsData[1].Price);
        int          index        = Tools_ParsePrice.CompareItems(info, info_another);

        return(goodsData[index].Price);
    }
Exemplo n.º 11
0
        private void InitUI()
        {
            this.viewFx = Singleton <BottleSystemView> .Instance.transform.Find("FxEffects/view");

            this.lastLevel = ModelManager.Instance.Get_BottleData_Level();
            this.lastRange = Tools_ParsePrice.Level_Check <SysMagicbottleExpVo>(this.lastLevel, this.bottle_info, false);
            this.lastIcon  = BaseDataMgr.instance.GetDataById <SysMagicbottleExpVo>(this.lastRange.ToString()).largeIcon;
            Sprite sprite = Resources.Load <Sprite>("Texture/MagicBottleHD/" + this.lastIcon);

            this.sp.sprite = sprite;
            this.ChangeBottleEffect(this.lastIcon);
            this.viewFx.gameObject.SetActive(false);
        }
Exemplo n.º 12
0
        private string ReturnMaxExp(int level)
        {
            this.bottle_info = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleExpVo>();
            int num = Tools_ParsePrice.Level_Check <SysMagicbottleExpVo>(level, this.bottle_info, false);

            if (this.bottle_info != null && num != this.lastRange)
            {
                string largeIcon = this.bottle_info[num.ToString()].largeIcon;
                this.lastLevel = level;
                this.lastRange = num;
                return(largeIcon);
            }
            return(this.lastIcon);
        }
Exemplo n.º 13
0
 public static List <float> ParsePrice(string price)
 {
     if (price == null)
     {
         return(null);
     }
     string[] array = price.Split(new char[]
     {
         ','
     });
     if (array != null || "[]" != array[0])
     {
         return(Tools_ParsePrice.ParseTypes(array.Length, array));
     }
     return(null);
 }
Exemplo n.º 14
0
        private void InitUI()
        {
            string str      = "[00ff00]/" + 3 + "[-]";
            string str2     = string.Empty;
            string newValue = string.Empty;

            this.currlevel = ModelManager.Instance.Get_BottleData_Level();
            this.info      = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleLevelVo>();
            int num = Tools_ParsePrice.MaxLevelCheck <SysMagicbottleLevelVo>(this.info, false);
            int num2;

            if (this.currlevel >= num)
            {
                SysMagicbottleLevelVo dataById = BaseDataMgr.instance.GetDataById <SysMagicbottleLevelVo>(num.ToString());
                int lastLevelDefference        = dataById.lastLevelDefference;
                num2 = ((this.currlevel - num) / lastLevelDefference + 1) * lastLevelDefference + num;
            }
            else
            {
                num2 = Tools_ParsePrice.ParseCollectRange(this.currlevel, true);
            }
            this.countLegend           = ModelManager.Instance.Get_BottleData_LegendCount();
            this.countCollect          = ModelManager.Instance.Get_BottleData_CollectorCount();
            this.textCountLegend.text  = this.countLegend.ToString();
            this.textCountCollect.text = this.countCollect.ToString();
            this.legendDigitBg_1.gameObject.SetActive(this.countLegend < 10);
            this.legendDigitBg_2.gameObject.SetActive(this.countLegend >= 10);
            this.collectDigitBg_1.gameObject.SetActive(this.countCollect < 10);
            this.collectDigitBg_2.gameObject.SetActive(this.countCollect >= 10);
            this.spriteLegend.color  = ((this.countLegend != 0) ? new Color(1f, 1f, 1f, 1f) : new Color(1f, 1f, 1f, 0.5f));
            this.spriteCollect.color = ((this.countCollect != 0) ? new Color(1f, 1f, 1f, 1f) : new Color(1f, 1f, 1f, 0.5f));
            int num3 = (this.currlevel % 3 != 0) ? (this.currlevel % 3) : 3;

            str2     = "[ff0000]" + num3 + "[-]";
            newValue = "[00ff00]" + num2 + "[-]";
            string stringById  = LanguageManager.Instance.GetStringById("MagicBottle_NomalOpenTips");
            string stringById2 = LanguageManager.Instance.GetStringById("MagicBottle_GoodOpenTips");

            this.descriptionLen      = stringById.Replace("*", str2 + str);
            this.descriptianCol      = stringById2.Replace("*", newValue);
            this.textDesLegend.text  = this.descriptionLen;
            this.textDesCollect.text = this.descriptianCol;
        }
Exemplo n.º 15
0
    private static List <float> ParseTypes(int num, string[] details)
    {
        List <float> list = new List <float>();

        if (num != 1)
        {
            if (num == 2)
            {
                list = Tools_ParsePrice.ParseDetails(details[0], details[1]);
                list.Add(2f);
            }
        }
        else
        {
            list = Tools_ParsePrice.ParseDetails(details[0], null);
            list.Add(1f);
        }
        return(list);
    }
Exemplo n.º 16
0
    public static bool IsCollectorBottleUp(int levelL, int levelC)
    {
        Dictionary <string, SysMagicbottleLevelVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysMagicbottleLevelVo>();
        int num = Tools_ParsePrice.MaxLevelCheck <SysMagicbottleLevelVo>(typeDicByType, false);

        if (levelL >= num && levelC >= num)
        {
            SysMagicbottleLevelVo dataById = BaseDataMgr.instance.GetDataById <SysMagicbottleLevelVo>(num.ToString());
            int lastLevelDefference        = dataById.lastLevelDefference;
            return((levelC - num) % lastLevelDefference == 0);
        }
        if (levelC == Tools_ParsePrice.MaxLevelCheck <SysMagicbottleLevelVo>(typeDicByType, true))
        {
            return(true);
        }
        int num2 = Tools_ParsePrice.Level_Check <SysMagicbottleLevelVo>(levelL, typeDicByType, false);
        int num3 = Tools_ParsePrice.Level_Check <SysMagicbottleLevelVo>(levelC, typeDicByType, false);

        return(num2 != num3);
    }
Exemplo n.º 17
0
 private void Initialize()
 {
     this.heroCollection = base.transform.Find("HeroCollection");
     this.effectItem     = Resources.Load <EffectItem>("Prefab/UI/Sacrificial/EffectItem");
     this.collectUnit    = Resources.Load <PropViewCollectionUnit>("Prefab/UI/Sacrificial/PropCollectionUnit");
     this.verticalView   = this.heroCollection.Find("VerticalView").GetComponent <UIScrollView>();
     this.grid           = this.verticalView.transform.Find("Grid").GetComponent <UIGrid>();
     this.sv             = BaseDataMgr.instance.GetTypeDicByType <SysGameItemsVo>();
     this.sgivs          = Tools_ParsePrice.ParseGameItemData(10, this.sv);
     this.typeList.Clear();
     for (int i = 0; i < this.sgivs.Count; i++)
     {
         this.typeList.Add(this.sgivs[i].hero_decorate_type);
     }
     this.typeList.Sort();
     this.typeList.Reverse();
     this.typeNum = this.typeList[0];
     this.verticalView.considerInactive  = false;
     this.verticalView.mCalculatedBounds = false;
     PropViewCollection.isFirstRefresh   = true;
 }
Exemplo n.º 18
0
        private string PriceAll(string name)
        {
            this.list_goodsdata.Clear();
            this.list_goodsdata.AddRange(ModelManager.Instance.Get_ShopGoodsList());
            string result = null;

            this.goodsdata_hero.Clear();
            this.goodsdata_hero.AddRange(this.list_goodsdata.FindAll((GoodsData obj) => obj.Type == 1));
            this.hero_data.Clear();
            if (this.goodsdata_hero != null)
            {
                this.hero_data.AddRange(this.goodsdata_hero.FindAll((GoodsData obj) => obj.ElementId == name));
                if (this.hero_data == null || this.hero_data.Count == 0)
                {
                    result = null;
                }
                else
                {
                    result = Tools_ParsePrice.StringPrice(this.hero_data);
                }
            }
            return(result);
        }
Exemplo n.º 19
0
        public void ShowDetailsInfo(string userinfo)
        {
            string text;
            string text2;

            if (userinfo.Contains('|'))
            {
                string[] array = userinfo.Split(new char[]
                {
                    '|'
                });
                text  = array[0];
                text2 = array[1];
            }
            else
            {
                text  = userinfo;
                text2 = string.Empty;
            }
            PlayerData playerData = ModelManager.Instance.Get_GetPlayerData_X();

            if (playerData == null)
            {
                return;
            }
            string b = ToolsFacade.ServerCurrentTime.ToString("y-M-d");

            CtrlManager.OpenWindow(WindowID.DetailsInfo, null);
            this.transform.localPosition = new Vector3(-373.8f, 84.21f, 0f);
            this.transform.name          = text;
            SysSummonersHeadportraitVo dataById = BaseDataMgr.instance.GetDataById <SysSummonersHeadportraitVo>(playerData.Icon.ToString());

            if (dataById == null)
            {
                ClientLogger.Error("  Can't find Headportrait id=" + playerData.Icon + " in SysSummonersHeadportraitVo");
            }
            else
            {
                this.Portrait.mainTexture = ResourceManager.Load <Texture>(dataById.headportrait_icon.ToString(), true, true, null, 0, false);
            }
            SysSummonersPictureframeVo dataById2 = BaseDataMgr.instance.GetDataById <SysSummonersPictureframeVo>(playerData.Icon2.ToString());

            if (dataById2 == null)
            {
                ClientLogger.Error("  Can't find Headportrait frame id=" + playerData.Icon2 + " in SysSummonersPictureframeVo");
            }
            else
            {
                this.PortraitFrame.spriteName = dataById2.pictureframe_icon;
            }
            this.Name.text = playerData.SummName;
            this.Name.gameObject.GetComponent <AllochroicLabelChecker>().RenderLabel(playerData.CharmRankvalue);
            this.SummonerLv.text = CharacterDataMgr.instance.GetUserLevel(playerData.SummLevel).ToString();
            this.MobaID.text     = "(魔霸号:" + playerData.SummId + ")";
            this.LikeCount.text  = ModelManager.Instance.Get_GetPlayerData_X().likeCount.ToString();
            if (text == ModelManager.Instance.Get_userData_X().UserId)
            {
                this.LikeBth.gameObject.SetActive(false);
                this.LikeCount.gameObject.SetActive(false);
            }
            else
            {
                this.LikeBth.gameObject.SetActive(true);
                this.LikeCount.gameObject.SetActive(true);
            }
            this.GetState((double)playerData.LadderScore, playerData.LadderRank);
            int level = (playerData.bottlelevel != 0) ? playerData.bottlelevel : 1;

            this.MagicIcon.mainTexture = ResourceManager.Load <Texture>(Tools_ParsePrice.BottleLevelParse(level), true, true, null, 0, false);
            if (playerData.battleinfos != null)
            {
                this.BattleInfo(playerData.battleinfos);
            }
            this.Charm.text       = playerData.usercp.ToString();
            this.MagicRank.text   = text2;
            this.PentaKill.text   = playerData.pentaKill.ToString();
            this.QuataryKill.text = playerData.quadraKill.ToString();
            this.TripleKill_.text = playerData.tripleKill.ToString();
            this.Legendary.text   = playerData.godlike.ToString();
            if (PlayerPrefs.GetString(text) == b)
            {
                this.LikeBth.GetComponent <UISprite>().spriteName    = "Settlement_praise_02";
                UIEventListener.Get(this.LikeBth.gameObject).onClick = null;
            }
            else
            {
                this.LikeBth.GetComponent <UISprite>().spriteName    = "Settlement_praise_01";
                UIEventListener.Get(this.LikeBth.gameObject).onClick = new UIEventListener.VoidDelegate(this.ClickLikeBtn);
            }
        }
Exemplo n.º 20
0
    private static List <float> ParseDetails(string details, string details_another = null)
    {
        List <float> list = new List <float>();

        if (details_another == null)
        {
            string[] array = details.Split(new char[]
            {
                '|'
            });
            if (array.Length > 1)
            {
                if (Tools_ParsePrice.ParseDiscount(float.Parse(array[2])) == 1)
                {
                    list.Add((float)Tools_ParsePrice.ParseDiscount(float.Parse(array[2])));
                    list.Add(float.Parse(array[2]));
                    list.Add((float)int.Parse(array[0]));
                    list.Add(float.Parse(array[2]) * (float)int.Parse(array[1]));
                }
                else
                {
                    list.Add((float)Tools_ParsePrice.ParseDiscount(float.Parse(array[2])));
                    list.Add((float)int.Parse(array[0]));
                    list.Add(float.Parse(array[1]));
                }
            }
        }
        else
        {
            string[] array2 = details.Split(new char[]
            {
                '|'
            });
            string[] array3 = details_another.Split(new char[]
            {
                '|'
            });
            if (array2.Length > 1 && array3.Length > 1)
            {
                if (Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) == 1 || Tools_ParsePrice.ParseDiscount(float.Parse(array3[2])) == 1)
                {
                    if (Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) == 1 && Tools_ParsePrice.ParseDiscount(float.Parse(array3[2])) == 1)
                    {
                        list.Add(1f);
                        list.Add((float.Parse(array2[0]) != 2f) ? ((float.Parse(array3[0]) != 2f) ? float.Parse(array2[2]) : float.Parse(array3[2])) : float.Parse(array2[2]));
                        list.Add((float.Parse(array2[0]) != 2f) ? ((float.Parse(array3[0]) != 2f) ? float.Parse(array2[0]) : float.Parse(array3[0])) : float.Parse(array2[0]));
                        list.Add((float)((float.Parse(array2[0]) != 2f) ? ((float.Parse(array3[0]) != 2f) ? (int.Parse(array2[1]) * Tools_ParsePrice.ParseDiscount(float.Parse(array2[2]))) : (int.Parse(array3[1]) * Tools_ParsePrice.ParseDiscount(float.Parse(array3[2])))) : (int.Parse(array2[1]) * Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])))));
                    }
                    else
                    {
                        list.Add((float)((Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) != 1) ? Tools_ParsePrice.ParseDiscount(float.Parse(array3[2])) : Tools_ParsePrice.ParseDiscount(float.Parse(array2[2]))));
                        list.Add((Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) != 1) ? float.Parse(array3[2]) : float.Parse(array2[2]));
                        list.Add((float)((Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) != 1) ? int.Parse(array3[0]) : int.Parse(array2[0])));
                        list.Add((float)((Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])) != 1) ? (int.Parse(array3[1]) * Tools_ParsePrice.ParseDiscount(float.Parse(array3[2]))) : (int.Parse(array2[1]) * Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])))));
                    }
                }
                else
                {
                    list.Add((float)Tools_ParsePrice.ParseDiscount(float.Parse(array2[2])));
                    list.Add((float)int.Parse(array2[0]));
                    list.Add((float)int.Parse(array3[0]));
                    list.Add((float)int.Parse(array2[1]));
                    list.Add((float)int.Parse(array3[1]));
                }
            }
        }
        return(list);
    }
Exemplo n.º 21
0
        private string setMagicText(MagicBottleRankList magicRankDataList)
        {
            if (magicRankDataList.myrank == 0)
            {
                return("0");
            }
            string rank_reward = BaseDataMgr.instance.GetDataById <SysMagicbottleRankrewardsVo>(Tools_ParsePrice.BottleRewardParse(magicRankDataList.myrank)).rank_reward;
            string drop_items  = BaseDataMgr.instance.GetDataById <SysDropRewardsVo>(rank_reward).drop_items;

            string[] array = BaseDataMgr.instance.GetDataById <SysDropItemsVo>(drop_items).rewards.Split(new char[]
            {
                '|'
            });
            string text  = string.Empty;
            string text2 = array[1];

            switch (text2)
            {
            case "1":
                text = LanguageManager.Instance.GetStringById("Currency_Gold");
                break;

            case "2":
                text = LanguageManager.Instance.GetStringById("Currency_Diamond");
                break;

            case "3":
                text = LanguageManager.Instance.GetStringById("Currency_MagicBottle");
                break;
            }
            return(array[2]);
        }