using System.Collections;
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
[XLua.Hotfix]
|
public class GemGetWayCell : CellView
|
{
|
[SerializeField] Image m_GemBG;
|
[SerializeField] Image m_GemIcon;
|
[SerializeField] Text m_GetWay;
|
[SerializeField] Text m_GemName;
|
|
public void Display(int type, int geyWay)
|
{
|
var config = ItemConfig.GetGemDataByLevelAndType(1, type);
|
if (config != null)
|
{
|
m_GemBG.SetItemBackGround(config.ItemColor);
|
m_GemIcon.SetSprite(config.IconKey);
|
}
|
|
var getWayConfig = GetItemWaysConfig.Get(geyWay);
|
if (getWayConfig != null)
|
{
|
m_GetWay.text = getWayConfig.Text;
|
}
|
|
var funcConfig = FuncConfigConfig.Get(string.Format("GemType{0}", type));
|
if (funcConfig != null)
|
{
|
m_GemName.text = funcConfig.Numerical2;
|
}
|
}
|
}
|
}
|