cull(engine-cleanup): pass-8 phase-2 cascade round 2 after MyPageItemBattle stub
This commit is contained in:
@@ -11,15 +11,6 @@ public class DeckSelectUI : MonoBehaviour
|
||||
{
|
||||
public class InitOptions
|
||||
{
|
||||
public Action<DeckUI> OnUpdateDeckUICustomize { get; set; }
|
||||
|
||||
public Action OnClickInfoButton { get; set; }
|
||||
|
||||
public DeckData PrimaryFirstDisplayDeck { get; set; }
|
||||
|
||||
public bool CanUseNonPossessionCard { get; set; }
|
||||
|
||||
public IFirstDisplayPageIndexGetter FirstDisplayPageIndexGetter { get; set; }
|
||||
}
|
||||
|
||||
private enum ChangeMoveDirection
|
||||
@@ -135,9 +126,6 @@ public class DeckSelectUI : MonoBehaviour
|
||||
|
||||
private static readonly Vector3 OUTSIDE_LEFT_PAGE_POSITION = VIEW_PAGE_POSITION + Vector3.left * 1400f;
|
||||
|
||||
[SerializeField]
|
||||
private DeckUI _deckFrameOriginal;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _titleLabel;
|
||||
|
||||
@@ -164,15 +152,6 @@ public class DeckSelectUI : MonoBehaviour
|
||||
[SerializeField]
|
||||
private UILabel _noDeckText;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _cautionLabel;
|
||||
|
||||
[SerializeField]
|
||||
private UIGrid[] _deckTableGrids = new UIGrid[2];
|
||||
|
||||
[SerializeField]
|
||||
private UIButton _infoButton;
|
||||
|
||||
private DeckTable[] _deckTables = new DeckTable[2];
|
||||
|
||||
private int _deckTableIndex;
|
||||
@@ -195,45 +174,6 @@ public class DeckSelectUI : MonoBehaviour
|
||||
|
||||
public bool IsPageMoving { get; private set; }
|
||||
|
||||
public void UpdateDeckView(List<DeckGroup> deckGroupList, Format format, bool isVisibleCreateNew, Action onSettingDeckListFinish = null, DeckData primaryFirstDisplayDeck = null, IFirstDisplayPageIndexGetter firstDisplayPageIndexGetter = null)
|
||||
{
|
||||
List<DeckData> list = new List<DeckData>();
|
||||
foreach (DeckGroup deckGroup in deckGroupList)
|
||||
{
|
||||
list.AddRange(deckGroup.DeckDataList);
|
||||
}
|
||||
LoadResources(list, delegate
|
||||
{
|
||||
if (!_isOnDestroy)
|
||||
{
|
||||
if (firstDisplayPageIndexGetter == null)
|
||||
{
|
||||
firstDisplayPageIndexGetter = new DefaultFirstDisplayPageIndexGetter();
|
||||
}
|
||||
CreateDeckGroupPages(deckGroupList, isVisibleCreateNew, format, primaryFirstDisplayDeck, firstDisplayPageIndexGetter);
|
||||
onSettingDeckListFinish.Call();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void OnClickDeck(DeckUI deckUI)
|
||||
{
|
||||
|
||||
OnSelectDeck.Call(deckUI.Deck);
|
||||
}
|
||||
|
||||
private void OnDragPanel(Vector2 dir)
|
||||
{
|
||||
if (dir.x >= 70f)
|
||||
{
|
||||
PrevPage();
|
||||
}
|
||||
else if (dir.x <= -70f)
|
||||
{
|
||||
NextPage();
|
||||
}
|
||||
}
|
||||
|
||||
private void NextPage()
|
||||
{
|
||||
if (_pageList.Count > 1)
|
||||
|
||||
Reference in New Issue
Block a user