cull(engine-cleanup): pass-8 phase-2 cascade round 3 after GachaUI stub
This commit is contained in:
@@ -358,8 +358,6 @@ public class DialogBase : MonoBehaviour
|
||||
|
||||
private List<UIPanelAlphaController> _insideObjectUIPanelAlphaControllerList = new List<UIPanelAlphaController>();
|
||||
|
||||
private Coroutine _autoCloseCoroutine;
|
||||
|
||||
public InputDialog InputDialog { get; set; }
|
||||
|
||||
public bool IsCloseByCloseButton { get; private set; }
|
||||
@@ -1150,15 +1148,6 @@ public class DialogBase : MonoBehaviour
|
||||
return dialogBase;
|
||||
}
|
||||
|
||||
private IEnumerator AutoCloseCoroutine(float second)
|
||||
{
|
||||
yield return new WaitForSeconds(second);
|
||||
if (dialogNowScene == DialogScene.WAIT)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDialogNoClose()
|
||||
{
|
||||
SetBackViewToNotCloseDialog();
|
||||
|
||||
@@ -6,6 +6,5 @@ public class GachaUI : UIBase
|
||||
{
|
||||
public enum CardPackType
|
||||
{
|
||||
NONE,
|
||||
TICKET_MULTI}
|
||||
NONE}
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class CenteringUIWidget : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Transform _offset;
|
||||
|
||||
[SerializeField]
|
||||
private bool _isCenteringHorizontal = true;
|
||||
|
||||
[SerializeField]
|
||||
private bool _isCenteringVertical;
|
||||
|
||||
private static Bounds GetBounds(UIWidget widget, Transform parent)
|
||||
{
|
||||
if (!(widget is UILabel))
|
||||
{
|
||||
return widget.CalculateBounds(parent);
|
||||
}
|
||||
UILabel uILabel = (UILabel)widget;
|
||||
NGUIText.Alignment alignment = uILabel.alignment;
|
||||
if (alignment == NGUIText.Alignment.Automatic)
|
||||
{
|
||||
switch (uILabel.pivot)
|
||||
{
|
||||
case UIWidget.Pivot.TopLeft:
|
||||
case UIWidget.Pivot.Left:
|
||||
case UIWidget.Pivot.BottomLeft:
|
||||
alignment = NGUIText.Alignment.Left;
|
||||
break;
|
||||
case UIWidget.Pivot.Top:
|
||||
case UIWidget.Pivot.Center:
|
||||
case UIWidget.Pivot.Bottom:
|
||||
alignment = NGUIText.Alignment.Center;
|
||||
break;
|
||||
case UIWidget.Pivot.TopRight:
|
||||
case UIWidget.Pivot.Right:
|
||||
case UIWidget.Pivot.BottomRight:
|
||||
alignment = NGUIText.Alignment.Right;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Bounds result = uILabel.CalculateBounds(parent);
|
||||
Vector3 vector = new Vector3(uILabel.printedSize.x, uILabel.printedSize.y, 0f);
|
||||
switch (alignment)
|
||||
{
|
||||
case NGUIText.Alignment.Left:
|
||||
result.max = result.min + vector;
|
||||
break;
|
||||
case NGUIText.Alignment.Center:
|
||||
result.size = vector;
|
||||
break;
|
||||
case NGUIText.Alignment.Right:
|
||||
result.min = result.max - vector;
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,4 @@ public enum PackCategory
|
||||
None,
|
||||
LegendCardPack,
|
||||
SpecialCardPack,
|
||||
LimitedSpecialCardPack,
|
||||
FreePackLeaderSkin,
|
||||
RotationStarterCardPack,
|
||||
LegendAndLeaderSkinSinglePack
|
||||
}
|
||||
LimitedSpecialCardPack}
|
||||
|
||||
@@ -3,9 +3,5 @@ namespace Wizard;
|
||||
public class PackChildGachaInfo
|
||||
{
|
||||
|
||||
public GachaUI.CardPackType PackType { get; set; }
|
||||
|
||||
public int Cost { get; set; }
|
||||
|
||||
public long UserGoodsId { get; set; }
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace Wizard;
|
||||
|
||||
public class PackConfig
|
||||
{
|
||||
public List<PackChildGachaInfo> ChildGachaInfoList { get; } = new List<PackChildGachaInfo>();
|
||||
|
||||
public int PackId { get; set; }
|
||||
|
||||
@@ -16,8 +15,6 @@ public class PackConfig
|
||||
|
||||
public PackCategory Category { get; set; }
|
||||
|
||||
public int OverrideUIEffectPackId { get; set; }
|
||||
|
||||
public bool IsSpecialCardPack
|
||||
{
|
||||
get
|
||||
@@ -29,6 +26,4 @@ public class PackConfig
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLegendCardPack => Category == PackCategory.LegendCardPack;
|
||||
}
|
||||
|
||||
@@ -46,9 +46,6 @@ public class PurchaseConfirm : MonoBehaviour
|
||||
[SerializeField]
|
||||
private GameObject _haveObj;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _campaignNameLabel;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject _rootObj;
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PurchaseRewardInfo
|
||||
{
|
||||
}
|
||||
@@ -11,8 +11,6 @@ public class RemainTime
|
||||
|
||||
private float _sinceTime;
|
||||
|
||||
public double NowUnixTime => _serverUnixTime + (double)Time.realtimeSinceStartup - (double)_sinceTime;
|
||||
|
||||
public DateTime TimeInLocal { get; private set; }
|
||||
|
||||
public string LocalTime { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user