Esempio n. 1
0
        private void AllotFrame(string position)
        {
            SysMagicbottleGoodViewVo dataById = BaseDataMgr.instance.GetDataById <SysMagicbottleGoodViewVo>(position);
            int quality = dataById.quality;

            if (quality != 0)
            {
                this.frame.spriteName = "Magic_bottle_icons_frame_0" + quality;
            }
        }
Esempio n. 2
0
        private void TableSource(string position)
        {
            this.isSprite = false;
            SysMagicbottleGoodViewVo dataById = BaseDataMgr.instance.GetDataById <SysMagicbottleGoodViewVo>(position);

            string[] array = dataById.type.Split(new char[]
            {
                '|'
            });
            this.itemType = int.Parse(array[0]);
            if (array != null && 1 <= array.Length)
            {
                string text = array[0];
                switch (text)
                {
                case "1":
                {
                    SysCurrencyVo dataById2 = BaseDataMgr.instance.GetDataById <SysCurrencyVo>(array[1]);
                    this.type        = dataById2.name;
                    this.icon        = dataById.viewIcon;
                    this.icon_detail = dataById.loadingIcon;
                    this.width       = 90;
                    this.height      = 90;
                    break;
                }

                case "2":
                {
                    string text2 = string.Empty;
                    text2 = array[1];
                    if ("0" == text2)
                    {
                        this.type     = LanguageManager.Instance.GetStringById("Currency_Rune");
                        this.isSprite = true;
                        this.width    = 74;
                        this.height   = 86;
                    }
                    else
                    {
                        this.type     = LanguageManager.Instance.GetStringById("Customization_Type_" + text2);
                        this.isSprite = false;
                        this.width    = 90;
                        this.height   = 90;
                    }
                    this.name        = LanguageManager.Instance.GetStringById(dataById.viewName);
                    this.icon        = dataById.viewIcon;
                    this.icon_detail = dataById.loadingIcon;
                    break;
                }

                case "3":
                {
                    string text3 = array[1];
                    switch (text3)
                    {
                    case "1":
                        this.icon        = dataById.viewIcon;
                        this.icon_detail = dataById.loadingIcon;
                        this.type        = LanguageManager.Instance.GetStringById("Currency_Hero");
                        this.name        = LanguageManager.Instance.GetStringById(dataById.viewName);
                        this.width       = 90;
                        this.height      = 90;
                        break;

                    case "2":
                        this.icon        = dataById.viewIcon;
                        this.icon_detail = dataById.loadingIcon;
                        this.type        = LanguageManager.Instance.GetStringById("Currency_Skin");
                        this.name        = LanguageManager.Instance.GetStringById(dataById.viewName);
                        this.width       = 90;
                        this.height      = 90;
                        break;

                    case "3":
                        this.icon        = dataById.viewIcon;
                        this.icon_detail = dataById.loadingIcon;
                        this.width       = 90;
                        this.height      = 90;
                        break;

                    case "4":
                        this.icon        = dataById.viewIcon;
                        this.icon_detail = dataById.loadingIcon;
                        this.width       = 90;
                        this.height      = 90;
                        break;
                    }
                    break;
                }
                }
            }
        }