cull(engine-cleanup): pass-8 phase-2 cascade round 1 after MyPageItemBattle stub
This commit is contained in:
@@ -18,20 +18,6 @@ public class MyPageItem : MonoBehaviour
|
||||
|
||||
private bool cardAnimationInitialized;
|
||||
|
||||
protected bool IsCardMoving
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_cardMove != null)
|
||||
{
|
||||
return _cardMove.IsCardMoving;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public TopBar TopBar => _parent.TopBar;
|
||||
|
||||
protected MyPageCardPanelAnimation CardAnimation => _cardMove;
|
||||
|
||||
protected MyPageMenu Parent => _parent;
|
||||
@@ -69,18 +55,6 @@ public class MyPageItem : MonoBehaviour
|
||||
base.gameObject.SetActive(value: false);
|
||||
}
|
||||
|
||||
public virtual void OnClose()
|
||||
{
|
||||
}
|
||||
|
||||
protected void StartCardPanelAppearAnimation()
|
||||
{
|
||||
if (_cardMove != null)
|
||||
{
|
||||
_cardMove.StartCardPanelAnimation(isCutCardMotion: false);
|
||||
}
|
||||
}
|
||||
|
||||
protected void SaveCardPanelDefaultPosition()
|
||||
{
|
||||
int num = _cardPanelList.Length;
|
||||
@@ -95,30 +69,6 @@ public class MyPageItem : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
protected void RestoreCardPanelPosition()
|
||||
{
|
||||
if (_cardPanelList == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < _cardPanelList.Length; i++)
|
||||
{
|
||||
if (_cardPanelList[i] != null)
|
||||
{
|
||||
_cardPanelList[i].RestoreSavedPosition();
|
||||
_cardPanelList[i].gameObject.SetActive(value: true);
|
||||
_cardPanelList[i].EffectActive = false;
|
||||
_cardPanelList[i].EffectActive = true;
|
||||
_cardPanelList[i].CheckMaintenanceType();
|
||||
UITweenAlpha component = _cardPanelList[i].GetComponent<UITweenAlpha>();
|
||||
if (component != null)
|
||||
{
|
||||
UnityEngine.Object.Destroy(component);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void OnMyPageInfoReceive()
|
||||
{
|
||||
if (_cardPanelList == null)
|
||||
@@ -149,19 +99,6 @@ public class MyPageItem : MonoBehaviour
|
||||
iTween.MoveTo(obj, iTween.Hash("x", x, "time", 0.3f, "delay", 0.1f, "islocal", true, "easetype", iTween.EaseType.easeOutExpo));
|
||||
}
|
||||
|
||||
protected void MoveCardPanelLeftPosition(GameObject moveObj)
|
||||
{
|
||||
CardAnimation.StopMove();
|
||||
TweenMoveTo(moveObj, -328f);
|
||||
}
|
||||
|
||||
public void AppearAnimationFromRight(GameObject obj)
|
||||
{
|
||||
RemoveITween(obj);
|
||||
obj.gameObject.SetActive(value: true);
|
||||
iTween.MoveFrom(obj, iTween.Hash("x", obj.transform.localPosition.x + 1000f, "time", 0.3f, "delay", 0.1f, "islocal", true, "easetype", iTween.EaseType.easeOutExpo));
|
||||
}
|
||||
|
||||
protected void FadeOutCardPanel(MyPageCardPanel panel, Action onFinish)
|
||||
{
|
||||
panel.EffectActive = false;
|
||||
@@ -171,70 +108,9 @@ public class MyPageItem : MonoBehaviour
|
||||
});
|
||||
}
|
||||
|
||||
protected void FadeOutCardPanelAndNonActive(MyPageCardPanel panel)
|
||||
{
|
||||
FadeOutCardPanel(panel, delegate
|
||||
{
|
||||
panel.gameObject.SetActive(value: false);
|
||||
});
|
||||
}
|
||||
|
||||
protected static void FadeOutObject(UITweenAlpha tweenAlpha, Action onFinish = null)
|
||||
{
|
||||
tweenAlpha.End();
|
||||
FadeUtility.FadeOutObject(tweenAlpha, onFinish);
|
||||
}
|
||||
|
||||
protected void ResetAlphaAndRemoveTween(UISprite spriteObj)
|
||||
{
|
||||
UITweenAlpha component = spriteObj.GetComponent<UITweenAlpha>();
|
||||
if (component != null)
|
||||
{
|
||||
UnityEngine.Object.Destroy(component);
|
||||
}
|
||||
spriteObj.alpha = 1f;
|
||||
}
|
||||
|
||||
public static CardPanelMaintenancePlate SetMaintenanceVisible(bool isMaintenance, UIButton button, CardPanelMaintenancePlate currentPlate, int buttonLabelDepth)
|
||||
{
|
||||
if (isMaintenance)
|
||||
{
|
||||
if (currentPlate == null)
|
||||
{
|
||||
GameObject prefab = null; // Pre-Phase-5b: no PrefabMgr headless
|
||||
currentPlate = NGUITools.AddChild(button.gameObject, prefab).GetComponent<CardPanelMaintenancePlate>();
|
||||
currentPlate.SetDepth(buttonLabelDepth + 1);
|
||||
}
|
||||
currentPlate.gameObject.SetActive(value: true);
|
||||
UIManager.SetObjectToGrey(button.gameObject, b: true);
|
||||
UIManager.SetObjectToGrey(currentPlate.gameObject, b: false);
|
||||
button.isEnabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (currentPlate != null)
|
||||
{
|
||||
currentPlate.gameObject.SetActive(value: false);
|
||||
}
|
||||
UIManager.SetObjectToGrey(button.gameObject, b: false);
|
||||
button.isEnabled = true;
|
||||
}
|
||||
return currentPlate;
|
||||
}
|
||||
|
||||
protected void SaveDefaultPosition(GameObject obj)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
_defaultPosition[obj.GetInstanceID()] = obj.transform.localPosition;
|
||||
}
|
||||
}
|
||||
|
||||
protected void RestoreDefaultPosition(GameObject obj)
|
||||
{
|
||||
if (_defaultPosition.ContainsKey(obj.GetInstanceID()))
|
||||
{
|
||||
obj.transform.localPosition = _defaultPosition[obj.GetInstanceID()];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user