//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Monday, October 09, 2017
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine.UI;
|
|
|
|
namespace vnxbqy.UI
|
{
|
|
public class TreasureIntroducePanel : MonoBehaviour
|
{
|
[SerializeField] Image m_Icon;
|
[SerializeField] Text m_FunctionTitle;
|
[SerializeField] Text m_FunctionName;
|
[SerializeField] Text m_Description;
|
|
TreasureModel model { get { return ModelCenter.Instance.GetModel<TreasureModel>(); } }
|
|
Treasure m_Treasure;
|
|
public void Display(Treasure _treasure)
|
{
|
m_Treasure = _treasure;
|
if (m_Treasure == null)
|
{
|
return;
|
}
|
|
DisplayBaseInfo();
|
}
|
|
private void DisplayBaseInfo()
|
{
|
var config = TreasureConfig.Get(m_Treasure.id);
|
m_FunctionTitle.text = Language.Get("Hallows_UnLockSkill");
|
var skillConfig = SkillConfig.Get(m_Treasure.skillId);
|
m_FunctionName.text = skillConfig.SkillName;
|
m_Icon.SetSprite(skillConfig.IconName);
|
|
m_Description.text = skillConfig.Description;
|
}
|
|
|
}
|
|
}
|