cull(engine-cleanup): pass-8 phase-2 cascade round 1 after MyPageItemHome stub
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class AspectCameraPerspective : MonoBehaviour
|
|
||||||
{
|
|
||||||
|
|
||||||
private bool m_isSetFOV;
|
|
||||||
|
|
||||||
public void UpdateFov()
|
|
||||||
{
|
|
||||||
m_isSetFOV = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -38,14 +38,6 @@ public class CommonBackGround : UIBase
|
|||||||
|
|
||||||
public bool IsFinishLod => _bgFinishLoad;
|
public bool IsFinishLod => _bgFinishLoad;
|
||||||
|
|
||||||
public bool EffectVisible
|
|
||||||
{
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_effectRoot.SetActive(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_instance = this;
|
_instance = this;
|
||||||
|
|||||||
@@ -1,154 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using Wizard;
|
|
||||||
|
|
||||||
public class MyPageBanner : MyPageBannerBase
|
|
||||||
{
|
|
||||||
protected enum MoveSide
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected UICenterOnChild _uiCenterOnChild;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected GameObject _pagerPrefab;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected UIWrapContent _uiWrapContent;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected GameObject _pagerBaseObject;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected GameObject _buttonBase;
|
|
||||||
|
|
||||||
protected bool _isAnimation;
|
|
||||||
|
|
||||||
protected bool _isCanSlide;
|
|
||||||
|
|
||||||
protected bool _isClickStart;
|
|
||||||
|
|
||||||
protected Vector3 _touchPoint;
|
|
||||||
|
|
||||||
protected int _bannerNo;
|
|
||||||
|
|
||||||
protected List<UISprite> _pagerSpriteList;
|
|
||||||
|
|
||||||
protected GameObject _centerObject;
|
|
||||||
|
|
||||||
protected override IEnumerator CreateBannerImage()
|
|
||||||
{
|
|
||||||
_bannerList = new List<BannerInfo>(Data.MyPage.data._bannerList);
|
|
||||||
if (!base.IsEnableBanner)
|
|
||||||
{
|
|
||||||
base.gameObject.SetActive(value: false);
|
|
||||||
yield break;
|
|
||||||
}
|
|
||||||
yield return LoadBannerImage();
|
|
||||||
while (!base.gameObject.activeInHierarchy)
|
|
||||||
{
|
|
||||||
yield return null;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < _bannerList.Count; i++)
|
|
||||||
{
|
|
||||||
GameObject gameObject = UnityEngine.Object.Instantiate(_bannerImagePrefab);
|
|
||||||
gameObject.transform.SetParent(_uiWrapContent.transform);
|
|
||||||
gameObject.transform.localScale = Vector3.one;
|
|
||||||
gameObject.transform.localPosition = Vector3.zero;
|
|
||||||
_bannerList[i].BannerGameObject = gameObject;
|
|
||||||
}
|
|
||||||
_uiWrapContent.onInitializeItem = _OnInitializeItem;
|
|
||||||
_uiWrapContent.SortBasedOnScrollMovement();
|
|
||||||
_uiCenterOnChild.onFinished = _OnFinishedCenterChild;
|
|
||||||
if (_bannerList.Count > 1)
|
|
||||||
{
|
|
||||||
GameObject gameObject2 = _uiWrapContent.transform.Find("0").gameObject;
|
|
||||||
_uiWrapContent.transform.Find((_bannerList.Count - 1).ToString()).gameObject.transform.localPosition = new Vector3(gameObject2.transform.localPosition.x - (float)_uiWrapContent.itemSize, gameObject2.transform.localPosition.y, gameObject2.transform.localPosition.z);
|
|
||||||
_pagerSpriteList = new List<UISprite>();
|
|
||||||
for (int j = 0; j < _bannerList.Count; j++)
|
|
||||||
{
|
|
||||||
GameObject gameObject3 = UnityEngine.Object.Instantiate(_pagerPrefab);
|
|
||||||
gameObject3.transform.SetParent(_pagerBaseObject.transform);
|
|
||||||
gameObject3.transform.localScale = Vector3.one;
|
|
||||||
gameObject3.transform.localPosition = Vector3.zero;
|
|
||||||
gameObject3.name = j.ToString();
|
|
||||||
_pagerSpriteList.Add(gameObject3.GetComponent<UISprite>());
|
|
||||||
}
|
|
||||||
_PagerUpDate();
|
|
||||||
UIGrid component = _pagerBaseObject.GetComponent<UIGrid>();
|
|
||||||
component.enabled = true;
|
|
||||||
float x = component.transform.localPosition.x - component.cellWidth * (float)(_bannerList.Count - 1) / 2f;
|
|
||||||
component.transform.localPosition = new Vector3(x, component.transform.localPosition.y, component.transform.localPosition.z);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_buttonBase.SetActive(value: false);
|
|
||||||
}
|
|
||||||
_centerObject = _uiWrapContent.transform.Find(_bannerNo.ToString()).gameObject;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void BannerOnPress(GameObject inObject, bool inState)
|
|
||||||
{
|
|
||||||
if (inState && Input.GetMouseButtonDown(0))
|
|
||||||
{
|
|
||||||
_touchPoint = Input.mousePosition;
|
|
||||||
_isClickStart = true;
|
|
||||||
_isCanSlide = true;
|
|
||||||
StartCoroutine(BannerPressAnimation(inObject));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void _OnInitializeItem(GameObject go, int wrapIndex, int realIndex)
|
|
||||||
{
|
|
||||||
int index = wrapIndex;
|
|
||||||
UIEventListener.Get(go).onPress = BannerOnPress;
|
|
||||||
go.name = index.ToString();
|
|
||||||
InitializeEventHandler(go, _bannerList[index]);
|
|
||||||
UIEventListener uIEventListener = UIEventListener.Get(go);
|
|
||||||
uIEventListener.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(uIEventListener.onClick, (UIEventListener.VoidDelegate)delegate
|
|
||||||
{
|
|
||||||
_isClickStart = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void _OnFinishedCenterChild()
|
|
||||||
{
|
|
||||||
_isAnimation = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void _PagerUpDate()
|
|
||||||
{
|
|
||||||
if (_bannerList.Count <= 1)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < _bannerList.Count; i++)
|
|
||||||
{
|
|
||||||
if (i == _bannerNo)
|
|
||||||
{
|
|
||||||
_pagerSpriteList[i].spriteName = "carousel_marker_on";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_pagerSpriteList[i].spriteName = "carousel_marker_off";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerator BannerPressAnimation(GameObject inTweenObject)
|
|
||||||
{
|
|
||||||
TweenScale tweenScaleComponent = inTweenObject.GetComponent<TweenScale>();
|
|
||||||
if ((bool)tweenScaleComponent)
|
|
||||||
{
|
|
||||||
tweenScaleComponent.PlayForward();
|
|
||||||
while (Input.GetMouseButton(0))
|
|
||||||
{
|
|
||||||
yield return null;
|
|
||||||
}
|
|
||||||
tweenScaleComponent.PlayReverse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -25,8 +25,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
|
|
||||||
public bool NeedBadge;
|
public bool NeedBadge;
|
||||||
|
|
||||||
public GameObject BannerGameObject { get; set; }
|
|
||||||
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
{
|
{
|
||||||
if (obj == null || GetType() != obj.GetType())
|
if (obj == null || GetType() != obj.GetType())
|
||||||
@@ -53,9 +51,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
private GameObject _deckIntroductionPrefab;
|
private GameObject _deckIntroductionPrefab;
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
protected GameObject _bannerImagePrefab;
|
|
||||||
|
|
||||||
protected List<BannerInfo> _bannerList;
|
protected List<BannerInfo> _bannerList;
|
||||||
|
|
||||||
private List<string> _loadAssetList;
|
private List<string> _loadAssetList;
|
||||||
@@ -84,15 +79,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
|
|
||||||
protected abstract IEnumerator CreateBannerImage();
|
protected abstract IEnumerator CreateBannerImage();
|
||||||
|
|
||||||
public void CreateMyPageBanner()
|
|
||||||
{
|
|
||||||
if (!_isCreate)
|
|
||||||
{
|
|
||||||
_createCoroutine = UIManager.GetInstance().StartCoroutine(CreateBanner());
|
|
||||||
_isCreate = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerator CreateBanner()
|
private IEnumerator CreateBanner()
|
||||||
{
|
{
|
||||||
yield return CreateBannerImage();
|
yield return CreateBannerImage();
|
||||||
@@ -104,14 +90,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Show()
|
|
||||||
{
|
|
||||||
if (!_isFirstTips)
|
|
||||||
{
|
|
||||||
base.gameObject.SetActive(value: true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetActive(bool inActive)
|
public void SetActive(bool inActive)
|
||||||
{
|
{
|
||||||
_isActive = inActive;
|
_isActive = inActive;
|
||||||
@@ -134,21 +112,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected IEnumerator LoadBannerImage()
|
|
||||||
{
|
|
||||||
if (IsEnableBanner)
|
|
||||||
{
|
|
||||||
_loadAssetList = new List<string>();
|
|
||||||
List<string> loadImagePath = new List<string>();
|
|
||||||
for (int i = 0; i < _bannerList.Count; i++)
|
|
||||||
{
|
|
||||||
loadImagePath.Add(Toolbox.ResourcesManager.GetAssetTypePath(_bannerList[i].ImageName, ResourcesManager.AssetLoadPathType.UiDownLoad));
|
|
||||||
}
|
|
||||||
yield return UIManager.GetInstance().StartCoroutine(Toolbox.ResourcesManager.LoadAssetGroupAsync(loadImagePath, null));
|
|
||||||
_loadAssetList.AddRange(loadImagePath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SceneChangeBySetting(string click, string status)
|
public static void SceneChangeBySetting(string click, string status)
|
||||||
{
|
{
|
||||||
switch (click)
|
switch (click)
|
||||||
@@ -261,50 +224,6 @@ public abstract class MyPageBannerBase : MonoBehaviour
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void InitializeEventHandler(GameObject go, BannerInfo bannerInfo)
|
|
||||||
{
|
|
||||||
UITexture component = go.GetComponent<UITexture>();
|
|
||||||
component.mainTexture = Toolbox.ResourcesManager.LoadObject<Texture>(Toolbox.ResourcesManager.GetAssetTypePath(bannerInfo.ImageName, ResourcesManager.AssetLoadPathType.UiDownLoad, isfetch: true));
|
|
||||||
component.depth = 5;
|
|
||||||
_ = Data.SystemText;
|
|
||||||
string click = bannerInfo.Click;
|
|
||||||
if (click == "dialog_info")
|
|
||||||
{
|
|
||||||
UIEventListener.Get(go).onClick = delegate
|
|
||||||
{
|
|
||||||
OnClickDialogInfo(bannerInfo);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else if (click == "dialog")
|
|
||||||
{
|
|
||||||
UIEventListener.Get(go).onClick = delegate
|
|
||||||
{
|
|
||||||
OnClickDialog(bannerInfo);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else if (click == "deck_intro_rotation")
|
|
||||||
{
|
|
||||||
UIEventListener.Get(go).onClick = delegate
|
|
||||||
{
|
|
||||||
OnClickDeckIntroduction(bannerInfo.Status, Format.Rotation);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else if (click == "deck_intro_unlimited")
|
|
||||||
{
|
|
||||||
UIEventListener.Get(go).onClick = delegate
|
|
||||||
{
|
|
||||||
OnClickDeckIntroduction(bannerInfo.Status, Format.Unlimited);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
UIEventListener.Get(go).onClick = delegate
|
|
||||||
{
|
|
||||||
SceneChangeBySetting(click, bannerInfo.Status);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void HandleSpeedChallenge(string kind, string status)
|
private static void HandleSpeedChallenge(string kind, string status)
|
||||||
{
|
{
|
||||||
SystemText systemText = Data.SystemText;
|
SystemText systemText = Data.SystemText;
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using Cute;
|
|
||||||
using LitJson;
|
|
||||||
using UnityEngine;
|
|
||||||
using Wizard;
|
|
||||||
|
|
||||||
public class MyPageCenterCard : MonoBehaviour
|
|
||||||
{
|
|
||||||
|
|
||||||
private readonly string CIRCLE_VIEW_LAYER_NAME = "MyPageCardList";
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject CameraCard;
|
|
||||||
|
|
||||||
private Vector3 _cameraCardPos;
|
|
||||||
|
|
||||||
private bool _cameraPositionInitializeEnd;
|
|
||||||
|
|
||||||
private int _cardViewState;
|
|
||||||
|
|
||||||
private int _circleCardLayer;
|
|
||||||
|
|
||||||
public bool CardLoadFinish => _cardViewState >= 2;
|
|
||||||
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
_circleCardLayer = LayerMask.NameToLayer(CIRCLE_VIEW_LAYER_NAME);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SaveCameraFirstPosition()
|
|
||||||
{
|
|
||||||
if (!_cameraPositionInitializeEnd)
|
|
||||||
{
|
|
||||||
_cameraCardPos = CameraCard.transform.localPosition;
|
|
||||||
_cameraPositionInitializeEnd = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void MoveInCameraCard()
|
|
||||||
{
|
|
||||||
SaveCameraFirstPosition();
|
|
||||||
CameraCard.transform.localPosition = _cameraCardPos + Vector3.up * 2000f;
|
|
||||||
iTween.MoveTo(CameraCard.gameObject, iTween.Hash("position", _cameraCardPos, "time", 0.3f, "islocal", true, "easetype", iTween.EaseType.easeOutExpo));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using Wizard;
|
|
||||||
|
|
||||||
public class MyPageCharaMenu : MonoBehaviour
|
|
||||||
{
|
|
||||||
private struct DragInfo
|
|
||||||
{
|
|
||||||
public float time;
|
|
||||||
|
|
||||||
public float posX;
|
|
||||||
|
|
||||||
public DragInfo(float time, float posX)
|
|
||||||
{
|
|
||||||
this.time = time;
|
|
||||||
this.posX = posX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private UIButton sinkaButton;
|
|
||||||
|
|
||||||
public UIButton EvolutionButton => sinkaButton;
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
using System;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class MyPageHomeStatic : MonoBehaviour
|
|
||||||
{
|
|
||||||
[SerializeField]
|
|
||||||
private MyPageCenterCard _centerCardMove;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private MyPageCharaMenu _charaMenu;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject _contentsRoot;
|
|
||||||
|
|
||||||
public bool CardLoadFinish => _centerCardMove.CardLoadFinish;
|
|
||||||
|
|
||||||
public void SetActive(bool isActive)
|
|
||||||
{
|
|
||||||
_contentsRoot.SetActive(isActive);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Show()
|
|
||||||
{
|
|
||||||
_contentsRoot.SetActive(value: true);
|
|
||||||
AspectCameraPerspective[] array = UnityEngine.Object.FindObjectsOfType<AspectCameraPerspective>();
|
|
||||||
for (int i = 0; i < array.Length; i++)
|
|
||||||
{
|
|
||||||
array[i].UpdateFov();
|
|
||||||
}
|
|
||||||
_centerCardMove.MoveInCameraCard();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Hide()
|
|
||||||
{
|
|
||||||
_contentsRoot.SetActive(value: false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetTutorialMode()
|
|
||||||
{
|
|
||||||
UIManager.SetObjectToGrey(_charaMenu.EvolutionButton.gameObject, b: true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -18,41 +18,8 @@ public class MyPageItem : MonoBehaviour
|
|||||||
|
|
||||||
protected MyPageCardPanelAnimation CardAnimation => _cardMove;
|
protected MyPageCardPanelAnimation CardAnimation => _cardMove;
|
||||||
|
|
||||||
protected MyPageMenu Parent => _parent;
|
|
||||||
|
|
||||||
public bool IsEnableFooterCurrentMenu { get; set; }
|
public bool IsEnableFooterCurrentMenu { get; set; }
|
||||||
|
|
||||||
public virtual void Initialize(MyPageMenu parent)
|
|
||||||
{
|
|
||||||
_parent = parent;
|
|
||||||
SaveCardPanelDefaultPosition();
|
|
||||||
if (cardAnimationInitialized)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
cardAnimationInitialized = true;
|
|
||||||
if (_cardMove != null)
|
|
||||||
{
|
|
||||||
GameObject[] array = new GameObject[_cardPanelList.Length];
|
|
||||||
for (int i = 0; i < _cardPanelList.Length; i++)
|
|
||||||
{
|
|
||||||
array[i] = _cardPanelList[i].gameObject;
|
|
||||||
}
|
|
||||||
_cardMove.SetCardPanelList(array);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Show(bool skipCardAnimation = false)
|
|
||||||
{
|
|
||||||
base.gameObject.SetActive(value: true);
|
|
||||||
IsEnableFooterCurrentMenu = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Hide()
|
|
||||||
{
|
|
||||||
base.gameObject.SetActive(value: false);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void SaveCardPanelDefaultPosition()
|
protected void SaveCardPanelDefaultPosition()
|
||||||
{
|
{
|
||||||
int num = _cardPanelList.Length;
|
int num = _cardPanelList.Length;
|
||||||
@@ -66,19 +33,4 @@ public class MyPageItem : MonoBehaviour
|
|||||||
CardAnimation.UpdateCardPanelDefaultPosition(array);
|
CardAnimation.UpdateCardPanelDefaultPosition(array);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void OnMyPageInfoReceive()
|
|
||||||
{
|
|
||||||
if (_cardPanelList == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < _cardPanelList.Length; i++)
|
|
||||||
{
|
|
||||||
if (_cardPanelList[i] != null)
|
|
||||||
{
|
|
||||||
_cardPanelList[i].CheckMaintenanceType();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,10 @@ public class MyPageMenu : UIBase
|
|||||||
public bool IsEnableFooterCurrentMenu => false;
|
public bool IsEnableFooterCurrentMenu => false;
|
||||||
public bool IsVisible => false;
|
public bool IsVisible => false;
|
||||||
|
|
||||||
public bool _treasureBoxCpRewardDialogClosed => true;
|
|
||||||
public bool IsFirstGuid => false;
|
|
||||||
public TopBar TopBar { get; set; }
|
|
||||||
public MyPageCustomBGControl CustomBGControl => null;
|
|
||||||
|
|
||||||
public static void SetEnableReloadCard() { }
|
public static void SetEnableReloadCard() { }
|
||||||
public static DialogBase CreateDialogForTutorial() => null;
|
public static DialogBase CreateDialogForTutorial() => null;
|
||||||
|
|
||||||
public void ChangeMenu(int index, bool isCutCardMotion = false) { }
|
public void ChangeMenu(int index, bool isCutCardMotion = false) { }
|
||||||
public void ChangeMyPageBG(MyPageDetail.BGType type, string id) { }
|
|
||||||
public void FinishTutorialMode() { }
|
public void FinishTutorialMode() { }
|
||||||
public void ResetFirstGuide() { }
|
public void ResetFirstGuide() { }
|
||||||
public void OnReadGift() { }
|
public void OnReadGift() { }
|
||||||
|
|||||||
@@ -1,78 +0,0 @@
|
|||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using Wizard;
|
|
||||||
|
|
||||||
public class MyPageSubBanner : MyPageBannerBase
|
|
||||||
{
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject _bannerRoot;
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject _roomCampaignBadge;
|
|
||||||
|
|
||||||
public void HideAndRepositionBanner(string click)
|
|
||||||
{
|
|
||||||
if (_bannerList == null || _bannerList.Count <= 0)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
foreach (BannerInfo banner in _bannerList)
|
|
||||||
{
|
|
||||||
if (banner.Click == click)
|
|
||||||
{
|
|
||||||
banner.BannerGameObject.SetActive(value: false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
RepositionBannerObject();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override IEnumerator CreateBannerImage()
|
|
||||||
{
|
|
||||||
_roomCampaignBadge.SetActive(value: false);
|
|
||||||
if (Data.MyPage.data._subBannerInfoList != null)
|
|
||||||
{
|
|
||||||
_bannerList = new List<BannerInfo>(Data.MyPage.data._subBannerInfoList);
|
|
||||||
}
|
|
||||||
if (_bannerList == null || _bannerList.Count <= 0)
|
|
||||||
{
|
|
||||||
base.gameObject.SetActive(value: false);
|
|
||||||
yield break;
|
|
||||||
}
|
|
||||||
yield return LoadBannerImage();
|
|
||||||
while (!base.gameObject.activeInHierarchy)
|
|
||||||
{
|
|
||||||
yield return null;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < _bannerList.Count; i++)
|
|
||||||
{
|
|
||||||
GameObject gameObject = NGUITools.AddChild(_bannerRoot, _bannerImagePrefab);
|
|
||||||
InitializeEventHandler(gameObject, _bannerList[i]);
|
|
||||||
if (_bannerList[i].NeedBadge)
|
|
||||||
{
|
|
||||||
GameObject obj = NGUITools.AddChild(gameObject, _roomCampaignBadge);
|
|
||||||
obj.transform.localPosition = _roomCampaignBadge.transform.localPosition;
|
|
||||||
obj.SetActive(value: true);
|
|
||||||
}
|
|
||||||
_bannerList[i].BannerGameObject = gameObject;
|
|
||||||
}
|
|
||||||
RepositionBannerObject();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RepositionBannerObject()
|
|
||||||
{
|
|
||||||
int num = 0;
|
|
||||||
foreach (BannerInfo banner in _bannerList)
|
|
||||||
{
|
|
||||||
GameObject bannerGameObject = banner.BannerGameObject;
|
|
||||||
if (bannerGameObject.activeSelf)
|
|
||||||
{
|
|
||||||
Vector3 zero = Vector3.zero;
|
|
||||||
zero += Vector3.down * num * 73f;
|
|
||||||
bannerGameObject.transform.localPosition = zero;
|
|
||||||
num++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -194,8 +194,6 @@ public static class Data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsBattlePassPeriod { get; private set; }
|
|
||||||
|
|
||||||
public static void Clear()
|
public static void Clear()
|
||||||
{
|
{
|
||||||
Master = null;
|
Master = null;
|
||||||
|
|||||||
@@ -162,16 +162,6 @@ public class Footer : UIBase
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowFooterMenu(bool isShow)
|
|
||||||
{
|
|
||||||
m_footerMenuObj.SetActive(isShow);
|
|
||||||
EnableMyPageCamera();
|
|
||||||
if (isShow)
|
|
||||||
{
|
|
||||||
UpdateArenaBadgeIcon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void EnableMyPageCamera()
|
private void EnableMyPageCamera()
|
||||||
{
|
{
|
||||||
if (MyPageMenu.Instance != null)
|
if (MyPageMenu.Instance != null)
|
||||||
|
|||||||
@@ -4,11 +4,4 @@ namespace Wizard;
|
|||||||
|
|
||||||
public class GuildNotification
|
public class GuildNotification
|
||||||
{
|
{
|
||||||
public int? GuildId { get; private set; }
|
|
||||||
|
|
||||||
public int? GuildRoomMessageId { get; private set; }
|
|
||||||
|
|
||||||
public bool IsJoinRequest { get; private set; }
|
|
||||||
|
|
||||||
public bool IsInvited { get; private set; }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,17 +35,6 @@ public class MyPageCustomBGControl : MonoBehaviour
|
|||||||
_root.SetActive(enable);
|
_root.SetActive(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Show(Action onFadeFinish = null)
|
|
||||||
{
|
|
||||||
SetEnable(enable: true);
|
|
||||||
_fadeOutTimer = 0.3f;
|
|
||||||
_customBGTexture.alpha = 0f;
|
|
||||||
_isFadeOut = false;
|
|
||||||
_character.gameObject.SetActive(value: true);
|
|
||||||
_onFadeFinish = onFadeFinish;
|
|
||||||
ShowSpecialResetShader();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ShowSpecialResetShader()
|
public void ShowSpecialResetShader()
|
||||||
{
|
{
|
||||||
if (IsSpecialMypageShader(_character.material))
|
if (IsSpecialMypageShader(_character.material))
|
||||||
|
|||||||
@@ -14,18 +14,6 @@ public class MyPageDetail
|
|||||||
RandomBG
|
RandomBG
|
||||||
}
|
}
|
||||||
|
|
||||||
public int unread_mail_count;
|
|
||||||
|
|
||||||
public DateTime last_announce_time;
|
|
||||||
|
|
||||||
public int unreceived_mission_reward_count;
|
|
||||||
|
|
||||||
public List<MyPageBannerBase.BannerInfo> _bannerList;
|
|
||||||
|
|
||||||
public List<MyPageBannerBase.BannerInfo> _subBannerInfoList;
|
|
||||||
|
|
||||||
public MyPageHomeDialogData MyPageHomeDialogData { get; set; } = new MyPageHomeDialogData();
|
|
||||||
|
|
||||||
public MyPageBGInfo BGInfo { get; set; } = new MyPageBGInfo();
|
public MyPageBGInfo BGInfo { get; set; } = new MyPageBGInfo();
|
||||||
|
|
||||||
public SpeedChallengeInfo SpeedChallengeInfo { get; set; }
|
public SpeedChallengeInfo SpeedChallengeInfo { get; set; }
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Cute;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Wizard;
|
|
||||||
|
|
||||||
public class MyPageHomeDialog : MonoBehaviour
|
|
||||||
{
|
|
||||||
private DialogBase _dialog;
|
|
||||||
|
|
||||||
private MyPageHomeDialogData _homeDialogData;
|
|
||||||
|
|
||||||
public static void Create(GameObject prefab, MyPageHomeDialogData data, Action onFinish)
|
|
||||||
{
|
|
||||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
|
||||||
GameObject obj = UnityEngine.Object.Instantiate(prefab);
|
|
||||||
dialogBase.SetSize(DialogBase.Size.M);
|
|
||||||
dialogBase.SetTitleLabel(data.DialogTitle);
|
|
||||||
dialogBase.gameObject.SetActive(value: false);
|
|
||||||
dialogBase.OnClose = delegate
|
|
||||||
{
|
|
||||||
data.Clear();
|
|
||||||
onFinish.Call();
|
|
||||||
};
|
|
||||||
MyPageHomeDialog component = obj.GetComponent<MyPageHomeDialog>();
|
|
||||||
component._dialog = dialogBase;
|
|
||||||
component._homeDialogData = data;
|
|
||||||
UIManager.GetInstance().createInSceneCenterLoading();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -55,9 +55,4 @@ public class MyPageHomeDialogData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Clear()
|
|
||||||
{
|
|
||||||
IsEnable = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ public static class NetworkDefine
|
|||||||
CARD_MAINTENANCE = 2018,
|
CARD_MAINTENANCE = 2018,
|
||||||
DECK_MAINTENANCE = 2019,
|
DECK_MAINTENANCE = 2019,
|
||||||
COLOSSEUM = 2050,
|
COLOSSEUM = 2050,
|
||||||
GUILD_MAINTENANCE = 2054,
|
|
||||||
ARENA_SEALED_BATTLE_MAINTENANCE = 2056,
|
ARENA_SEALED_BATTLE_MAINTENANCE = 2056,
|
||||||
BATTLE_PASS = 2070,
|
BATTLE_PASS = 2070,
|
||||||
AUTO_DECK_CREATE = 2080,
|
AUTO_DECK_CREATE = 2080,
|
||||||
|
|||||||
@@ -39,9 +39,7 @@ public partial class UIManager
|
|||||||
ClassSkinPurchasePage,
|
ClassSkinPurchasePage,
|
||||||
Profile,
|
Profile,
|
||||||
Mission,
|
Mission,
|
||||||
Mail,
|
|
||||||
BattlePass,
|
BattlePass,
|
||||||
Guild,
|
|
||||||
LoginBonus,
|
LoginBonus,
|
||||||
LotteryPage,
|
LotteryPage,
|
||||||
BeginnerMission,
|
BeginnerMission,
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ namespace UnityEngine
|
|||||||
public static T Instantiate<T>(T original, Vector3 pos, Quaternion rot) where T : Object => original;
|
public static T Instantiate<T>(T original, Vector3 pos, Quaternion rot) where T : Object => original;
|
||||||
public static T Instantiate<T>(T original, Vector3 pos, Quaternion rot, Transform parent) where T : Object => original;
|
public static T Instantiate<T>(T original, Vector3 pos, Quaternion rot, Transform parent) where T : Object => original;
|
||||||
public static Object Instantiate(Object original) => original;
|
public static Object Instantiate(Object original) => original;
|
||||||
public static T[] FindObjectsOfType<T>() where T : Object => new T[0];
|
|
||||||
public static Object FindObjectOfType(System.Type t) => null;
|
public static Object FindObjectOfType(System.Type t) => null;
|
||||||
public static Object[] FindObjectsOfType(System.Type t) => new Object[0];
|
public static Object[] FindObjectsOfType(System.Type t) => new Object[0];
|
||||||
public static bool operator ==(Object a, Object b) => ReferenceEquals(a, b);
|
public static bool operator ==(Object a, Object b) => ReferenceEquals(a, b);
|
||||||
|
|||||||
Reference in New Issue
Block a user