少年修仙传客户端代码仓库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using UnityEngine;
 
public class TreasurePavilionTipScrollerCell : CellView
{
    [SerializeField] TextEx txtInfo;
 
    public void Display(int id)
    {
        var config = GubaoResonanceAttrConfig.Get(id);
        int resonanceStar = config.ResonanceStar;
        int nowStar = TreasurePavilionModel.Instance.GetNowStar(id);
        txtInfo.text = TreasurePavilionModel.Instance.GetInfo(id);
        txtInfo.colorType = nowStar >= resonanceStar ? TextColType.LightGreen : TextColType.LightYellow;
    }
}