cull(engine-cleanup): pass-8 phase-2 cascade round 1 after CardDetailUI stub
This commit is contained in:
@@ -29,24 +29,6 @@ public class CardCraftPanel : MonoBehaviour
|
||||
[SerializeField]
|
||||
private UILabel _cantDestructLabel;
|
||||
|
||||
public void Init(Action onClickCreateBtn, Action onClickDestructBtn)
|
||||
{
|
||||
UIEventListener.Get(_createButton.gameObject).onClick = delegate
|
||||
{
|
||||
if (UIManager.GetInstance().IsTouchable)
|
||||
{
|
||||
onClickCreateBtn();
|
||||
}
|
||||
};
|
||||
UIEventListener.Get(_destructButton.gameObject).onClick = delegate
|
||||
{
|
||||
if (UIManager.GetInstance().IsTouchable)
|
||||
{
|
||||
onClickDestructBtn();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void UpdateCraftPanel(CardParameter inCardParam, bool isUpdateHaveRedether = true)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
|
||||
@@ -155,11 +155,6 @@ public class CardListTemplate : MonoBehaviour
|
||||
return _num;
|
||||
}
|
||||
|
||||
public int GetSpotCardNum()
|
||||
{
|
||||
return _spotCardNum;
|
||||
}
|
||||
|
||||
public void ShowNum()
|
||||
{
|
||||
_isHidingNum = false;
|
||||
@@ -179,11 +174,6 @@ public class CardListTemplate : MonoBehaviour
|
||||
SetNum(_num, _spotCardNum);
|
||||
}
|
||||
|
||||
public bool IsShowNum()
|
||||
{
|
||||
return !_isHidingNum;
|
||||
}
|
||||
|
||||
public void SetFace(bool isUp)
|
||||
{
|
||||
_isFaceUp = isUp;
|
||||
|
||||
@@ -174,30 +174,6 @@ public class CardParameter
|
||||
}
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_description != null)
|
||||
{
|
||||
return _description;
|
||||
}
|
||||
return _description = ConvFlavourText(_descriptionId);
|
||||
}
|
||||
}
|
||||
|
||||
public string EvoDescription
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_evoDescription != null)
|
||||
{
|
||||
return _evoDescription;
|
||||
}
|
||||
return _evoDescription = ConvFlavourText(_evoDescriptionId);
|
||||
}
|
||||
}
|
||||
|
||||
public string CardVoice
|
||||
{
|
||||
get
|
||||
@@ -380,24 +356,10 @@ public class CardParameter
|
||||
|
||||
public bool IsCollaboCard => CardSetNameMgr.IsCollaboSetId(int.Parse(CardSetId));
|
||||
|
||||
public bool IsEvolveChoiceCard => CardId.ToString().Substring(0, 3) == "910";
|
||||
|
||||
public bool IsPhantomCard => SealedData.IsPhantomCard(CardId);
|
||||
|
||||
public bool IsReprintedCard => CardId / 100000000 == 7;
|
||||
|
||||
public bool IsEnableFavorite
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsBasicCard && NormalCardId == BaseCardId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsPreReleaseCard
|
||||
{
|
||||
get
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class CardProtectTask : BaseTask
|
||||
{
|
||||
public class CardProtectTaskParam : BaseParam
|
||||
{
|
||||
public int card_id;
|
||||
|
||||
public bool is_protected;
|
||||
}
|
||||
|
||||
private CardProtectTaskParam _param;
|
||||
|
||||
public CardProtectTask()
|
||||
{
|
||||
base.type = ApiType.Type.CardProtect;
|
||||
}
|
||||
|
||||
public void SetParameter(int card_id, bool is_protected)
|
||||
{
|
||||
_param = new CardProtectTaskParam();
|
||||
_param.card_id = card_id;
|
||||
_param.is_protected = is_protected;
|
||||
base.Params = _param;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
List<int> favoriteCardList = new List<int>(); // Pre-Phase-5b: no favorites headless
|
||||
if (_param.is_protected)
|
||||
{
|
||||
favoriteCardList.Add(_param.card_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
favoriteCardList.Remove(_param.card_id);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
}
|
||||
@@ -116,12 +116,8 @@ public class Master
|
||||
|
||||
private IDictionary<string, string> CardVoiceTextDic { get; set; }
|
||||
|
||||
public List<string> CardDetailVoiceIgnoreList { get; private set; }
|
||||
|
||||
private IDictionary<string, string> PracticeTextDic { get; set; }
|
||||
|
||||
public IDictionary<int, List<int>> RelationCardSortDic { get; private set; }
|
||||
|
||||
public Dictionary<int, List<int>> GleamingGemListMaster { get; set; }
|
||||
|
||||
public Dictionary<string, MyPageCustomBGMasterData> MyPageCustomBGMaster { get; private set; }
|
||||
|
||||
@@ -297,18 +297,6 @@ public class PlayerStaticData : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public static int UserOrbNum
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetItemNum(1000);
|
||||
}
|
||||
set
|
||||
{
|
||||
UpdateItemNum(1000, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static long UserEmblemID
|
||||
{
|
||||
get
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PremiumCardConversionDialogParts : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private UILabel _text2;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _textWarning;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _beforeOrbNum;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _afterOrbNum;
|
||||
|
||||
public void Initialize(CardParameter cardData)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
_text2.text = systemText.Get("Card_0162_3", cardData.CardName);
|
||||
_beforeOrbNum.text = PlayerStaticData.UserOrbNum.ToString();
|
||||
_afterOrbNum.text = systemText.Get("Card_0162_6", (PlayerStaticData.UserOrbNum - 1).ToString());
|
||||
SetWarningText(cardData);
|
||||
}
|
||||
|
||||
private void SetWarningText(CardParameter cardData)
|
||||
{
|
||||
if (cardData.IsPreReleaseCard)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: false);
|
||||
return;
|
||||
}
|
||||
SystemText systemText = Data.SystemText;
|
||||
if (cardData.IsResurgentCard)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0300");
|
||||
}
|
||||
else if (!cardData.IsAvailableFormat(Format.Unlimited, ClassType.None))
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0204");
|
||||
}
|
||||
else if (cardData.SameKindNumMaxInUnlimited == 1)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0205");
|
||||
}
|
||||
else if (cardData.SameKindNumMaxInUnlimited == 2)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0206");
|
||||
}
|
||||
else if (Data.Crossover.IsWithinPracticePeriod)
|
||||
{
|
||||
int num = Mathf.Min(cardData.SameKindNumMaxInCrossoverMainClass, cardData.SameKindNumMaxInCrossoverSubClass);
|
||||
if (num == 0)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0277");
|
||||
}
|
||||
else if (num < FormatBehaviorManager.GetDefaultBehaviour(Format.Crossover).DeckSameKindCardNumMax)
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: true);
|
||||
_textWarning.text = systemText.Get("Card_0278", num.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_textWarning.gameObject.SetActive(value: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class PremiumCardConversionTask : BaseTask
|
||||
{
|
||||
private class PostParam : BaseParam
|
||||
{
|
||||
public int base_card_id;
|
||||
|
||||
public int base_card_number;
|
||||
|
||||
public int create_number;
|
||||
}
|
||||
|
||||
public PremiumCardConversionTask()
|
||||
{
|
||||
base.type = ApiType.Type.PremiumCardConversion;
|
||||
}
|
||||
|
||||
public void SetParameter(int normalCardId, int normalCardNumber)
|
||||
{
|
||||
PostParam postParam = new PostParam();
|
||||
postParam.base_card_id = normalCardId;
|
||||
postParam.base_card_number = normalCardNumber;
|
||||
postParam.create_number = 1;
|
||||
base.Params = postParam;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
PlayerStaticData.UpdateHaveUserGoodsNumByJsonData(base.ResponseData["data"]["reward_list"]);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
@@ -174,50 +174,6 @@ public class PurchaseConfirm : MonoBehaviour
|
||||
m_LabelAfterItemUnit.text = unit;
|
||||
}
|
||||
|
||||
public void SetCardBuy(string moneyKindName, int moneyHave, int moneyUse, CardParameter cardData)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
m_LabelUseItemCnt.text = systemText.Get("Card_0064", moneyUse.ToString());
|
||||
m_LabelBuyPack.text = systemText.Get("Card_0077", cardData.CardName);
|
||||
string text = CheckMyRotationCardBuyCheck(cardData);
|
||||
if (cardData.IsResurgentCard)
|
||||
{
|
||||
SetWarningTextId("Card_0300");
|
||||
}
|
||||
else if (!cardData.IsAvailableFormat(Format.Unlimited, ClassType.None))
|
||||
{
|
||||
SetWarningTextId("Card_0204");
|
||||
}
|
||||
else if (cardData.SameKindNumMaxInUnlimited == 1)
|
||||
{
|
||||
SetWarningTextId("Card_0205");
|
||||
}
|
||||
else if (cardData.SameKindNumMaxInUnlimited == 2)
|
||||
{
|
||||
SetWarningTextId("Card_0206");
|
||||
}
|
||||
else if (text != null)
|
||||
{
|
||||
SetWarningText(text);
|
||||
}
|
||||
else if (Data.Crossover.IsWithinPracticePeriod)
|
||||
{
|
||||
int num = Mathf.Min(cardData.SameKindNumMaxInCrossoverMainClass, cardData.SameKindNumMaxInCrossoverSubClass);
|
||||
if (num == 0)
|
||||
{
|
||||
SetWarningText(systemText.Get("Card_0277"));
|
||||
}
|
||||
else if (num < FormatBehaviorManager.GetDefaultBehaviour(Format.Crossover).DeckSameKindCardNumMax)
|
||||
{
|
||||
SetWarningText(systemText.Get("Card_0278", num.ToString()));
|
||||
}
|
||||
}
|
||||
m_LabelItemName.text = systemText.Get("Common_0113");
|
||||
int moneyAfter = moneyHave - moneyUse;
|
||||
SetCardCommon(moneyHave, moneyAfter);
|
||||
HideJpnLawObj();
|
||||
}
|
||||
|
||||
private string CheckMyRotationCardBuyCheck(CardParameter cardParameter)
|
||||
{
|
||||
if (!Data.MyRotationAllInfo.IsMyRotationEnable)
|
||||
@@ -264,28 +220,6 @@ public class PurchaseConfirm : MonoBehaviour
|
||||
return Data.SystemText.Get("MyRotation_ID_22", num3.ToString());
|
||||
}
|
||||
|
||||
public void SetCardSell(string moneyKindName, int moneyHave, int moneyGet, string cardName, bool inIsPremiumCard)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
m_LabelUseItemCnt.text = systemText.Get("Card_0079", moneyGet.ToString());
|
||||
m_LabelBuyPack.text = systemText.Get("Card_0078", cardName);
|
||||
m_LabelItemName.text = systemText.Get("Card_0097");
|
||||
if (inIsPremiumCard)
|
||||
{
|
||||
_premiumCardWarning.gameObject.SetActive(value: true);
|
||||
_premiumCardWarning.text = systemText.Get("Card_0144");
|
||||
_confirmObj.transform.localPosition = new Vector3(0f, -40f, 0f);
|
||||
_haveObj.transform.localPosition = new Vector3(0f, -40f, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
_premiumCardWarning.gameObject.SetActive(value: false);
|
||||
}
|
||||
int moneyAfter = moneyHave + moneyGet;
|
||||
SetCardCommon(moneyHave, moneyAfter);
|
||||
HideJpnLawObj();
|
||||
}
|
||||
|
||||
private void SetCardCommon(int moneyHave, int moneyAfter)
|
||||
{
|
||||
SetIconImage(UserGoods.Type.RedEther);
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class TextLineCreater : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private GameObject _originalLine;
|
||||
|
||||
[SerializeField]
|
||||
private UIGrid _lineGrid;
|
||||
|
||||
private List<GameObject> _lineList = new List<GameObject>();
|
||||
|
||||
public void ShowLines(int lineNumber, bool isOriginalActive = false)
|
||||
{
|
||||
if (lineNumber <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_originalLine.gameObject.SetActive(isOriginalActive);
|
||||
CreateLines(lineNumber);
|
||||
int i = 0;
|
||||
for (int count = _lineList.Count; i < count; i++)
|
||||
{
|
||||
if (i < lineNumber)
|
||||
{
|
||||
_lineList[i].gameObject.SetActive(value: true);
|
||||
}
|
||||
else
|
||||
{
|
||||
_lineList[i].gameObject.SetActive(value: false);
|
||||
}
|
||||
}
|
||||
_lineGrid.Reposition();
|
||||
}
|
||||
|
||||
private void CreateLines(int lineNumber)
|
||||
{
|
||||
for (int i = _lineList.Count; i < lineNumber; i++)
|
||||
{
|
||||
_lineList.Add(NGUITools.AddChild(_lineGrid.gameObject, _originalLine));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,11 +156,6 @@ public class _3dCardFrameManager
|
||||
return _frameMaterialList[(int)frameKind, (int)cardKind, rarity];
|
||||
}
|
||||
|
||||
public Material GetFrameMaterial(bool isPhantom, CardBasePrm.CharaType cardKind, int rarity)
|
||||
{
|
||||
return GetFrameMaterial(isPhantom ? eFrameKind.Phantom : eFrameKind.Normal, (!CardBasePrm.IsFollowerCard(cardKind)) ? (CardBasePrm.IsSpellCard(cardKind) ? eCardKind.Spell : eCardKind.Amulet) : eCardKind.Follower, rarity);
|
||||
}
|
||||
|
||||
private static string GetLegendFrameMaskName(eCardKind cardKind)
|
||||
{
|
||||
return $"tx_mask_CardFrame_{CARD_KIND_NAME_TABLE[(int)cardKind]}_Legend";
|
||||
|
||||
Reference in New Issue
Block a user