少年修仙传客户端代码仓库
hch
2023-06-14 f23c81d21c9cc4c9f06e8bed3ebb7ddbe7e15ac3
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
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Tuesday, March 12, 2019
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
 
namespace Snxxz.UI
{
 
    public class TipStrengthenPropertyWidget : MonoBehaviour
    {
        [SerializeField] Text m_PropertyBehaviour;
        EquipStrengthModel strengthModel { get { return ModelCenter.Instance.GetModel<EquipStrengthModel>(); } }
 
        public void Display(ItemTipUtility.StrengthenProperty data)
        {
            var count = data.properties.Count;
            var lines = new string[count];
            for (int i = 0; i < count; i++)
            {
                var property = data.properties[i];
                lines[i] = PlayerPropertyConfig.GetFullDescription(property.x, property.y);
            }
            m_PropertyBehaviour.text = string.Join("\r\n", lines);
 
            if (data.evolveLevel != 0)
            {
                var evolve = strengthModel.GetEquipPlusEvolve(data.equipPlace, data.evolveLevel);
                m_PropertyBehaviour.text += "\r\n" + Language.Get("Tip3", evolve.AttrName, evolve.AttrValue, data.evolveLevel);
                //evolve.AttrName + " +" + evolve.AttrValue + "      (进化" + Language.Get("Z1024", data.evolveLevel) + ")";
 
            }
        }
    } 
 
}