12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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_Select.gameObject.SetActive(true);
- // }
- // else
- // {
- // Icon_Select.gameObject.SetActive(false);
- // }
- // if (currentFabaoInfo.FabaoPowerupConfig.ID >= fabaoInfo.FabaoPowerupConfig.ID)
- // {
- // Icon_Marsk.gameObject.SetActive(false);
- //
- // }
- // else
- // {
- // Icon_Marsk.gameObject.SetActive(true);
- // }
- if (currentFabaoInfo.FabaoPowerupConfig.ID >= fabaoInfo.FabaoPowerupConfig.ID)
- {
- csc.ChangeState(1);
-
- // Text_Level.transform.Gray();
- // Text_Desc.transform.Gray();
-
- }
- else
- {
- csc.ChangeState(0);
- // Text_Desc.transform.RecoverColor();
- // Text_Level.transform.RecoverColor();
- }
- }
- }
- }
|