Esempio n. 1
0
        private void CreateBookList()
        {
            Dictionary <string, SysSummonersHeadportraitVo> typeDicByType = BaseDataMgr.instance.GetTypeDicByType <SysSummonersHeadportraitVo>();

            foreach (SysSummonersHeadportraitVo current in typeDicByType.Values)
            {
                if (current.headportrait_output == 5)
                {
                    ItemBoookData itemBoookData = new ItemBoookData();
                    itemBoookData._icon           = current.headportrait_icon;
                    itemBoookData._name           = current.headportrait_name;
                    itemBoookData._quality        = current.headportrait_quality;
                    itemBoookData._bottleBookType = BookItemType.HeadPortrait;
                    itemBoookData._itemType       = ItemType.HeadPortrait;
                    this.bookItems.Add(itemBoookData);
                }
            }
            Dictionary <string, SysGameItemsVo> typeDicByType2 = BaseDataMgr.instance.GetTypeDicByType <SysGameItemsVo>();

            foreach (SysGameItemsVo current2 in typeDicByType2.Values)
            {
                if (current2.hero_decorate_type >= 1 && current2.hero_decorate_type <= 6)
                {
                    SysCustomizationVo dataById = BaseDataMgr.instance.GetDataById <SysCustomizationVo>(current2.items_id);
                    if (dataById.customization_source.Equals("2"))
                    {
                        ItemBoookData itemBoookData2 = new ItemBoookData();
                        itemBoookData2._icon           = current2.icon;
                        itemBoookData2._name           = current2.name;
                        itemBoookData2._quality        = current2.quality;
                        itemBoookData2._itemType       = ItemType.NormalGameItem;
                        itemBoookData2._bottleBookType = this.Hero_Decorate_Type(current2.hero_decorate_type);
                        this.bookItems.Add(itemBoookData2);
                    }
                }
            }
            Dictionary <string, SysHeroSkinVo> typeDicByType3 = BaseDataMgr.instance.GetTypeDicByType <SysHeroSkinVo>();

            foreach (SysHeroSkinVo current3 in typeDicByType3.Values)
            {
                if (current3.source == "2")
                {
                    ItemBoookData itemBoookData3 = new ItemBoookData();
                    itemBoookData3._icon           = current3.avatar_icon;
                    itemBoookData3._name           = current3.name;
                    itemBoookData3._quality        = current3.quality;
                    itemBoookData3._itemType       = ItemType.HeroSkin;
                    itemBoookData3._bottleBookType = BookItemType.HeroSkin;
                    this.bookItems.Add(itemBoookData3);
                }
            }
            this.bookItems = (from item in this.bookItems
                              orderby item._quality descending, item._bottleBookType
                              select item).ToList <ItemBoookData>();
            this.itemSize = this.bookItems.Count;
            this.FillTheBookList(this.bookItems, 4);
            this.corTask = this.cMgr.StartCoroutine(this.SetPanelState(), true);
        }
Esempio n. 2
0
 public void ShowPic(ItemBoookData data)
 {
     base.transform.GetComponent <UIDragScrollView>().enabled = true;
     this.SetQualityFrame(data._quality);
     this.SetTexture(data._icon, 140);
 }