using UnityEngine;
|
|
namespace vnxbqy.UI
|
{
|
public class FairySiegeBaseLvInfoNormalCell : CellView
|
{
|
[SerializeField] TextEx txtInfo;
|
FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
|
|
public void Display(int campLV, CellView cellView)
|
{
|
int lastCampLV = cellView.info.Value.infoInt1;
|
if (!FamilyGCZCampLVConfig.Has(campLV))
|
return;
|
FamilyGCZCampLVConfig config = FamilyGCZCampLVConfig.Get(campLV);
|
FamilyGCZCampLVConfig lastConfig = FamilyGCZCampLVConfig.Get(lastCampLV);
|
string baseStr = Language.Get("FairySiege100", UIHelper.AppendColor(TextColType.DarkGreen, Language.Get("FairySiege101", Language.Get("BlessedLand039", config.AddHPPer))));
|
txtInfo.text = !FamilyGCZCampLVConfig.Has(lastCampLV) || lastConfig.StarCount >= config.StarCount ?
|
baseStr :
|
StringUtility.Contact(baseStr, " ", UIHelper.AppendColor(TextColType.DarkGreen, Language.Get("FairySiege128")), " ", UIHelper.AppendColor(TextColType.DarkGreen, Language.Get("FairySiege102", config.StarCount - lastConfig.StarCount)));
|
}
|
}
|
}
|