using Core.Language; using Excel2Json; using GameLogic.Hero; using Utility; namespace Fort23.Mono { [UIBinding(prefab = "FaBaoSkillWidget")] public partial class FaBaoSkillWidget : UIComponent { private void Init() { } public override void AddEvent() { } public override void DelEvent() { } public override void AddButtonEvent() { } public void CustomInit(FaBaoInfo currentFabaoInfo, FaBaoInfo fabaoInfo) { Text_Level.text = fabaoInfo.FabaoPowerupConfig.ID + "级"; Text_Desc.text = UtilTools.GetString(LanguageManager.Instance.Text(fabaoInfo.SkillConfig.PromoteLan), fabaoInfo.SkillConfig.PromoteLanPara); if (currentFabaoInfo.FabaoPowerupConfig.ID + 1 == fabaoInfo.FabaoPowerupConfig.ID) { Icon_CurrentUpGrade.gameObject.SetActive(true); } else { Icon_CurrentUpGrade.gameObject.SetActive(false); } if (currentFabaoInfo.FabaoPowerupConfig.ID >= fabaoInfo.FabaoPowerupConfig.ID) { Text_Desc.transform.RecoverColor(); Text_Level.transform.RecoverColor(); } else { Text_Level.transform.Gray(); Text_Desc.transform.Gray(); } } } }