Example #1
0
    private IEnumerator makeList(GUISelectPanelEvolutionItemList panel, CMD_EvolutionItemList.SOUL_GROUP soulGroup)
    {
        this.goNoEvolutionItemMsg.SetActive(false);
        if (!panel.isLoading() && !panel.isLoaded())
        {
            panel.setStatusLoading();
            List <GameWebAPI.UserSoulData> list = new List <GameWebAPI.UserSoulData>();
            foreach (GameWebAPI.UserSoulData userSoulData in this.userSoulData)
            {
                GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(userSoulData.soulId);
                if (int.Parse(soul.soulGroup) == (int)soulGroup)
                {
                    list.Add(userSoulData);
                }
            }
            this.soulNumList.Add(soulGroup, list.Count);
            panel.SetData(list.ToArray());
            panel.AllBuild(list.Count, true, 1f, 1f, null, null, true);
            panel.setStatusLoaded();
        }
        yield return(null);

        if (panel.isLoaded())
        {
            int num = 0;
            this.soulNumList.TryGetValue(soulGroup, out num);
            if (num == 0)
            {
                this.goNoEvolutionItemMsg.SetActive(true);
            }
        }
        yield break;
    }
Example #2
0
 private void SetCommonUI()
 {
     this.goWrapPlugin.SetActive(false);
     this.goWrapSoul.SetActive(false);
     this.goWrapVerup.SetActive(false);
     this.goWrapCorePlugin.SetActive(false);
     this.goWrapVerupAttrChange.SetActive(false);
     this.goNoEvolutionItemMsg.SetActive(false);
     this.csPluginPartsParent          = this.pluginPartsParent.GetComponent <GUISelectPanelEvolutionItemList>();
     this.csSoulPartsParent            = this.soulPartsParent.GetComponent <GUISelectPanelEvolutionItemList>();
     this.csVerupPartsParent           = this.verupPartsParent.GetComponent <GUISelectPanelEvolutionItemList>();
     this.csCorePluginPartsParent      = this.corePluginPartsParent.GetComponent <GUISelectPanelEvolutionItemList>();
     this.csVerupAttrChangePartsParent = this.verupAttrChangePartsParent.GetComponent <GUISelectPanelEvolutionItemList>();
     this.csPluginPartsParent.SetData(this.normalPluginDataList.ToArray());
     this.csPluginPartsParent.AllBuild(this.normalPluginDataList.Count, true, 1f, 1f, null, null, true);
     this.soulListParts.SetActive(false);
     this.goWrapPlugin.SetActive(true);
 }