cull(engine-cleanup): pass-8 phase-2 cascade round 4 after MyPageItemBattle stub

This commit is contained in:
gamer147
2026-07-03 21:54:00 -04:00
parent d1f56e6dda
commit 8e7fc8b15a
7 changed files with 2 additions and 249 deletions

View File

@@ -16,9 +16,7 @@ public class DeckSelectUI : MonoBehaviour
private enum ChangeMoveDirection
{
NONE,
RIGHT,
LEFT
}
RIGHT }
public class PageData
{
@@ -30,35 +28,6 @@ public class DeckSelectUI : MonoBehaviour
public List<DeckUI.DeckViewData> DeckViewList { get; private set; }
public static List<PageData> CreatePageList(List<DeckGroup> deckGroupList, bool isVisibleCreateNew)
{
List<PageData> list = new List<PageData>();
foreach (DeckGroup deckGroup in deckGroupList)
{
List<DeckUI.DeckViewData> list2 = DeckUI.DeckViewData.CreateDeckViewList(deckGroup.DeckDataList, isVisibleCreateNew);
if (!list2.Any((DeckUI.DeckViewData d) => d.ViewType != DeckUI.eViewType.Empty))
{
continue;
}
int num = 0;
for (int num2 = 0; num2 < list2.Count; num2++)
{
if (num2 % 9 == 0)
{
if (list2[num2].ViewType == DeckUI.eViewType.Empty)
{
break;
}
num++;
string groupName = DeckListUtility.DeckListHeader(deckGroup.AttributeType, num);
list.Add(new PageData(new List<DeckUI.DeckViewData>(), deckGroup.DeckFormat, deckGroup.AttributeType, groupName));
}
list.Last().AddDeckViewList(list2[num2]);
}
}
return list;
}
private PageData(List<DeckUI.DeckViewData> deckViewList, Format format, DeckAttributeType attributeType, string groupName)
{
DeckViewList = deckViewList;
@@ -129,29 +98,14 @@ public class DeckSelectUI : MonoBehaviour
[SerializeField]
private UILabel _titleLabel;
[SerializeField]
private GameObject _deckTableRoot;
[SerializeField]
private UIPageIndicator _pageIndicatorOriginal;
private UIPageIndicator _pageIndicator;
[SerializeField]
private GameObject _pageIndicatorRoot;
[SerializeField]
private UIButton _leftButton;
[SerializeField]
private UIButton _rightButton;
[SerializeField]
private BoxCollider _flickCollider;
[SerializeField]
private UILabel _noDeckText;
private DeckTable[] _deckTables = new DeckTable[2];
private int _deckTableIndex;
@@ -164,27 +118,10 @@ public class DeckSelectUI : MonoBehaviour
private List<PageData> _pageList;
private bool _isInitialized;
private bool _canUseNonPossessionCard;
public bool IsPageMoving { get; private set; }
private void ChangePage(int nextPageIndex, ChangeMoveDirection moveDirection)
{
if (!IsPageMoving && IsValidPageIndex(nextPageIndex))
{
PageData pageData = _pageList[nextPageIndex];
_currentPageIndex = nextPageIndex;
_titleLabel.text = pageData.GroupName;
ChangeDeckTable(pageData, moveDirection);
_pageIndicator.UpdateIndicator(_currentPageIndex + 1);
_leftButton.gameObject.SetActive(0 < nextPageIndex);
_rightButton.gameObject.SetActive(nextPageIndex < _pageList.Count - 1);
OnChangePage.Call(pageData.Format);
}
}
private bool IsValidPageIndex(int pageIndex)
{
if (_pageList.Count <= pageIndex)
@@ -225,13 +162,4 @@ public class DeckSelectUI : MonoBehaviour
});
}
private void DeleteResource()
{
if (_resourcePathList != null)
{
Toolbox.ResourcesManager.RemoveAssetGroup(_resourcePathList);
_resourcePathList.Clear();
}
}
}