using vnxbqy.UI;
|
using UnityEngine;
|
|
public class PetSkillInfoCell : CellView
|
{
|
[SerializeField] ImageEx imgSkillIcon;
|
[SerializeField] ImageEx imgUnLock;
|
[SerializeField] TextEx txtUnlockStage;
|
[SerializeField] RichText imgSkillDescription;
|
PetModel petModel { get { return ModelCenter.Instance.GetModel<PetModel>(); } }
|
public void Display(int skillID)
|
{
|
bool isLock = petModel.IsSkillUnlock(skillID);
|
imgUnLock.SetActive(!isLock);
|
txtUnlockStage.SetActive(!isLock);
|
txtUnlockStage.text = Language.Get("FashionDress106", petModel.GetSkillUnlockLevel(skillID));
|
imgSkillIcon.SetSprite(SkillConfig.Get(skillID).IconName);
|
imgSkillDescription.text = SkillConfig.Get(skillID).Description;
|
}
|
}
|