cull(engine-cleanup): pass-8 phase-2 cascade round 3 after MyPageItemBattle stub
This commit is contained in:
@@ -9,20 +9,10 @@ public class AvatarBattleAllInfo
|
||||
{
|
||||
public class PeriodData
|
||||
{
|
||||
|
||||
public double StartUnixTime { get; set; }
|
||||
|
||||
public double EndUnixTime { get; set; }
|
||||
}
|
||||
|
||||
private Dictionary<string, AvatarBattleInfo> _avatarBattleDictionary = new Dictionary<string, AvatarBattleInfo>();
|
||||
|
||||
private bool _avatarBattleScheduleExist;
|
||||
|
||||
private float _receiveSinceTime;
|
||||
|
||||
private double _receiveServerUnixTime;
|
||||
|
||||
public AvatarBattleInfo Get(string id)
|
||||
{
|
||||
if (string.IsNullOrEmpty(id))
|
||||
|
||||
@@ -156,12 +156,8 @@ public class DeckSelectUI : MonoBehaviour
|
||||
|
||||
private int _deckTableIndex;
|
||||
|
||||
private Action<DeckData> OnSelectDeck;
|
||||
|
||||
private Action<Format> OnChangePage;
|
||||
|
||||
private bool _isOnDestroy;
|
||||
|
||||
private List<string> _resourcePathList;
|
||||
|
||||
private int _currentPageIndex;
|
||||
@@ -174,96 +170,6 @@ public class DeckSelectUI : MonoBehaviour
|
||||
|
||||
public bool IsPageMoving { get; private set; }
|
||||
|
||||
private void NextPage()
|
||||
{
|
||||
if (_pageList.Count > 1)
|
||||
{
|
||||
ChangePage(_currentPageIndex + 1, ChangeMoveDirection.RIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
private void PrevPage()
|
||||
{
|
||||
if (_pageList.Count > 1)
|
||||
{
|
||||
ChangePage(_currentPageIndex - 1, ChangeMoveDirection.LEFT);
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadResources(List<DeckData> deckDataList, Action onFinish)
|
||||
{
|
||||
if (_isInitialized)
|
||||
{
|
||||
DeleteResource();
|
||||
}
|
||||
_resourcePathList = new List<string>();
|
||||
List<int> list = new List<int>(deckDataList.Count);
|
||||
List<long> list2 = new List<long>(deckDataList.Count);
|
||||
foreach (DeckData deckData in deckDataList)
|
||||
{
|
||||
if (deckData.IsNoCard())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int skinId = deckData.GetSkinId();
|
||||
if (!list.Contains(skinId))
|
||||
{
|
||||
list.Add(skinId);
|
||||
_resourcePathList.Add(Toolbox.ResourcesManager.GetAssetTypePath(deckData.GetSkinId().ToString(), ResourcesManager.AssetLoadPathType.DeckListTexture));
|
||||
}
|
||||
long existingSleeveId = Toolbox.ResourcesManager.GetExistingSleeveId(deckData.GetDeckSleeveID());
|
||||
if (!list2.Contains(existingSleeveId))
|
||||
{
|
||||
list2.Add(existingSleeveId);
|
||||
_resourcePathList.Add(Toolbox.ResourcesManager.GetAssetTypePath(existingSleeveId.ToString(), ResourcesManager.AssetLoadPathType.SleeveTexture));
|
||||
Sleeve sleeve = Data.Master.SleeveMgr.Get(existingSleeveId);
|
||||
if (sleeve.IsPremiumSleeve)
|
||||
{
|
||||
UIManager.GetInstance().getUIBase_CardManager().AddPremireSleevePath(ref _resourcePathList, sleeve);
|
||||
}
|
||||
}
|
||||
}
|
||||
UIManager.GetInstance().createInSceneCenterLoading();
|
||||
UIManager.GetInstance().StartCoroutine(Toolbox.ResourcesManager.LoadAssetGroupAsync(_resourcePathList, delegate
|
||||
{
|
||||
UIManager.GetInstance().closeInSceneCenterLoading();
|
||||
onFinish.Call();
|
||||
}));
|
||||
}
|
||||
|
||||
private void CreateDeckGroupPages(List<DeckGroup> deckGroupList, bool isVisibleCreateNew, Format format, DeckData primaryFirstDisplayDeck, IFirstDisplayPageIndexGetter firstDisplayPageIndexGetter)
|
||||
{
|
||||
_pageList = PageData.CreatePageList(deckGroupList, isVisibleCreateNew);
|
||||
bool flag = _pageList.Count > 0;
|
||||
_deckTableRoot.SetActive(flag);
|
||||
_noDeckText.gameObject.SetActive(!flag);
|
||||
_titleLabel.gameObject.SetActive(flag);
|
||||
_pageIndicatorOriginal.gameObject.SetActive(value: false);
|
||||
_pageIndicatorRoot.gameObject.SetActive(flag);
|
||||
if (flag)
|
||||
{
|
||||
if (_isInitialized && _pageIndicator != null)
|
||||
{
|
||||
UnityEngine.Object.Destroy(_pageIndicator.gameObject);
|
||||
}
|
||||
_pageIndicator = NGUITools.AddChild(_pageIndicatorRoot, _pageIndicatorOriginal.gameObject).GetComponent<UIPageIndicator>();
|
||||
_pageIndicator.gameObject.SetActive(value: true);
|
||||
}
|
||||
_flickCollider.gameObject.SetActive(flag);
|
||||
_rightButton.gameObject.SetActive(_pageList.Count > 1);
|
||||
_leftButton.gameObject.SetActive(_pageList.Count > 1);
|
||||
if (flag)
|
||||
{
|
||||
_currentPageIndex = firstDisplayPageIndexGetter.Get(_pageList, format, primaryFirstDisplayDeck, _canUseNonPossessionCard);
|
||||
_pageIndicator.Init(_pageList.Count, _currentPageIndex + 1);
|
||||
ChangePage(_currentPageIndex, ChangeMoveDirection.NONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
OnChangePage.Call(format);
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangePage(int nextPageIndex, ChangeMoveDirection moveDirection)
|
||||
{
|
||||
if (!IsPageMoving && IsValidPageIndex(nextPageIndex))
|
||||
|
||||
@@ -96,19 +96,6 @@ public class FormatChangeUI : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeFormatCategoryButtons(FormatCategory anotherFormatCategory)
|
||||
{
|
||||
_btnRotation.onClick.Add(new EventDelegate(delegate
|
||||
{
|
||||
OnClickChangeFormatBtn(FormatCategory.Rotation);
|
||||
}));
|
||||
_btnUnlimited.onClick.Add(new EventDelegate(delegate
|
||||
{
|
||||
OnClickChangeFormatBtn(FormatCategory.Unlimited);
|
||||
}));
|
||||
UpdateAnotherFormatButton(anotherFormatCategory);
|
||||
}
|
||||
|
||||
private void OnClickChangeFormatBtn(FormatCategory formatCategory)
|
||||
{
|
||||
if (_currentFormatCategory != formatCategory)
|
||||
|
||||
@@ -23,13 +23,4 @@ public static class FreeAndRankMatchDeckSelectConfirmDialog
|
||||
// UIManager scene change, which is the only observable output.
|
||||
UIManager.GetInstance().ChangeViewScene(UIManager.ViewScene.RankMatch);
|
||||
}
|
||||
|
||||
private static void SetBattleRetryForDeckCardEdit()
|
||||
{
|
||||
UIManager instance = UIManager.GetInstance();
|
||||
if (instance.IsCurrentScene(UIManager.ViewScene.DeckCardEdit))
|
||||
{
|
||||
(instance.GetUiBaseOfCurrentScene() as DeckCardEditUI).IsBattleRetry = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,10 +24,6 @@ public class MyPageDetail
|
||||
|
||||
public List<MyPageBannerBase.BannerInfo> _subBannerInfoList;
|
||||
|
||||
public float SinceTime { get; set; }
|
||||
|
||||
public double ServerUnixTime { get; set; }
|
||||
|
||||
public MyPageHomeDialogData MyPageHomeDialogData { get; set; } = new MyPageHomeDialogData();
|
||||
|
||||
public MyPageBGInfo BGInfo { get; set; } = new MyPageBGInfo();
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class RoomNonPossessionCardCampaign
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user