DaoYouLevelWidget.cs 769 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Excel2Json;
  2. using Fort23.UTool;
  3. namespace Fort23.Mono
  4. {
  5. [UIBinding(prefab = "DaoYouLevelWidget" )]
  6. public partial class DaoYouLevelWidget : UIComponent
  7. {
  8. public DaoyouLevelupConfig _daoyouLevelupConfig;
  9. private void Init()
  10. {
  11. }
  12. public override void AddEvent()
  13. {
  14. }
  15. public override void DelEvent()
  16. {
  17. }
  18. public override void AddButtonEvent()
  19. {
  20. }
  21. public void CustomInit(AccountFileInfo.DaoYouData daoYouData ,int configId)
  22. {
  23. _daoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(configId);
  24. Text_Level.text = configId.ToString();
  25. if ( daoYouData.awardLevels.Contains(configId))
  26. {
  27. Text_Tips.gameObject.SetActive(true);
  28. }
  29. else
  30. {
  31. Text_Tips.gameObject.SetActive(false);
  32. }
  33. }
  34. }
  35. }