1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Collections.Generic;
using UnityEngine;
 
public class HeroDebutCallHistoryCell : CellView
{
    [SerializeField] Color nameColor;
    [SerializeField] TextEx infoText;
    public virtual void Display(int index, List<HeroDebutGameRec> list)
    {
        if (list?.Count <= index) return;
        var rec = list[index];
 
        var itemconfig = ItemConfig.Get(rec.ItemID);
        if (itemconfig == null) return;
 
        //150 整个武将
        if (itemconfig.Type == 150)
        {
            HeroConfig heroConfig = HeroConfig.Get(rec.ItemID);
            if (heroConfig == null) return;
            int quality = heroConfig.Quality;
 
            infoText.text = Language.Get("HeroDebut29",
                UIHelper.AppendColor(nameColor, rec.PlayerName),
                UIHelper.AppendColor(UIHelper.GetUIColorByFunc(quality), Language.Get(StringUtility.Concat("CommonQuality", quality.ToString()))),
                UIHelper.AppendColor(UIHelper.GetUIColorByFunc(quality), heroConfig.Name.ToString())
            );
        }
        else
        {
            int quality = itemconfig.ItemColor;
 
            infoText.text = Language.Get("HeroDebut30",
                UIHelper.AppendColor(nameColor, rec.PlayerName),
                UIHelper.AppendColor(UIHelper.GetUIColorByFunc(quality), itemconfig.ItemName.ToString()),
                rec.ItemCount.ToString()
            );
        }
 
    }
 
}