Пример #1
0
        private void reloadCardList()
        {
            BuildCardList.clearItems();
            foreach (CardDefine card in
                     cards.Where(
                         c => ui.getManager <CardManager>().isStandardCard(c)
                         )
                     )
            {
                if (parent.game.cards.tryGetSkin(card.id, out var skin))
                {
                    if (FilterPanel.cardFilter(card, skin))
                    {
                        var item = BuildCardList.addItem();
                        item.update(card, skin);
                    }
                }
                else
                {
                    UberDebug.LogErrorChannel("UI", "无法找到" + card + "的皮肤");
                }

                BuildCardList.sortItems(FilterPanel.sortCompareMethod);
            }
        }
Пример #2
0
 private void onSortChange()
 {
     BuildCardList.sortItems(FilterPanel.sortCompareMethod);
 }