Exemplo n.º 1
0
        private MultiConceptCard CurrMaterials()
        {
            List <ConceptCardData> card_list = new List <ConceptCardData>((IEnumerable <ConceptCardData>) this.PlayerConceptCards);

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CCManager, (UnityEngine.Object)null))
            {
                this.Filter(card_list);
                ConceptCardListSortWindow.Sort(this.CCManager.SortType, this.CCManager.SortOrderType, card_list);
            }
            this.mSortDataList.SetArray(card_list.ToArray());
            return(this.mSortDataList);
        }
Exemplo n.º 2
0
        public void Sort(ConceptCardListSortWindow.Type SortType, ConceptCardListSortWindow.Type SortOrderType)
        {
            bool flag = false;

            for (int index = 0; index < this.mCardDatas.Count; ++index)
            {
                if (this.mCardDatas[index] == null)
                {
                    flag = true;
                }
            }
            ConceptCardListSortWindow.Sort(SortType, SortOrderType, this.mCardDatas);
            if (flag)
            {
                this.mCardDatas.Insert(0, (ConceptCardData)null);
            }
            this.RefreshIcon();
            this.ResetSelectCardAnimation();
            this.SelectedCardIconActive();
        }