lcy
13 分钟以前 2e7d66b9b7d541d878b2220fa1e50552e7553708
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
43
using System;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
 
 
public class BeautyMMTalentAttrCell : CellView
{
    [SerializeField] Text lvText;
    [SerializeField] Text nameText;
    [SerializeField] Text valueText;
    public void Display(int lv, int mmID)
    {
        var lvValue = BeautyMMManager.Instance.GetMMLV(mmID);
        bool isLVActive = false;
        if (lvValue >= lv)
        {
            isLVActive = true;
        }
        var mmConfig = BeautyConfig.Get(mmID);
        BeautyQualityLVConfig config;
        BeautyQualityLVConfig.TryGetBeautyQualityLVConfig(mmConfig.BeautyQuality, lv, out config);
        if (config == null)
        {
            return;
        }
        var id = config.AttrIDList[0];
        if (!isLVActive)
        {
            lvText.text = UIHelper.AppendColor(TextColType.NavyGray, Language.Get($"L1113", index));
            nameText.text = UIHelper.AppendColor(TextColType.NavyGray, PlayerPropertyConfig.Get(id).Name);
            valueText.text = UIHelper.AppendColor(TextColType.NavyGray, PlayerPropertyConfig.GetValueDescription(id, config.AttrValueList[0]));
        }
        else
        {
            lvText.text = Language.Get($"L1113", index);
            nameText.text = PlayerPropertyConfig.Get(id).Name;
            valueText.text = PlayerPropertyConfig.GetValueDescription(id, config.AttrValueList[0]);
        }
    }
 
 
}