//--------------------------------------------------------
|
// [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) + ")";
|
|
}
|
}
|
}
|
|
}
|