Esempio n. 1
0
 private void RefreshListForm(CUIFormScript listForm = null)
 {
     if (listForm == null)
     {
         listForm = Singleton <CUIManager> .GetInstance().GetForm("UGUI/Form/System/Achieve/Form_Achievement_List.prefab");
     }
     if (listForm != null)
     {
         listForm.GetWidget(1).GetComponent <Text>().text = CAchieveItem.GetAchievementTypeName(this.m_curAchievementType);
         this.m_oneTypeAchieveItems = CAchieveInfo.GetAchieveInfo().GetNeedShowAchieveItemsByType(this.m_curAchievementType);
         this.m_oneTypeAchieveItems.Sort();
         listForm.GetWidget(0).GetComponent <CUIListScript>().SetElementAmount(this.m_oneTypeAchieveItems.Count);
     }
 }