//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, March 12, 2019
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class TipShenPropertyWidget : MonoBehaviour
|
{
|
[SerializeField] Text m_PropertyBehaviours;
|
|
public void Display(ItemTipUtility.ShenProperty data)
|
{
|
var count = data.properties.Count;
|
var lines = new List<string>();
|
for (int i = 0; i < count; i++)
|
{
|
var property = data.properties[i];
|
string shenText = Language.Get("ShenEquipText" + property.z);
|
lines.Add(UIHelper.AppendColor(5, shenText + PlayerPropertyConfig.GetFullDescription(property.x, property.y)));
|
}
|
|
|
m_PropertyBehaviours.text = string.Join("\r\n", lines.ToArray());
|
}
|
|
}
|
|
}
|