少年修仙传客户端代码仓库
hch
2025-07-24 50e53441950268933694eeb5aad36147bbe1014d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)));
        }
    }
}