ShengShiConditionWidget.cs 793 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.Linq;
  2. using Excel2Json;
  3. using Fort23.UTool;
  4. namespace Fort23.Mono
  5. {
  6. [UIBinding(prefab = "ShengShiConditionWidget" )]
  7. public partial class ShengShiConditionWidget : UIComponent
  8. {
  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.EventConditionData eventConditionData)
  22. {
  23. Text_Name.text = EventHelper.GetTaskMessage(eventConditionData) ;
  24. if (EventSystemManager.Instance.IsEvenkLinkComplete(eventConditionData))
  25. {
  26. Sts.ChangeState(1);
  27. }
  28. else
  29. {
  30. Sts.ChangeState(0);
  31. }
  32. }
  33. public void CustomInit(string tips)
  34. {
  35. Text_Name.text = tips ;
  36. Sts.ChangeState(0);
  37. }
  38. }
  39. }