EventMinLogWidget.cs 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Core.Language;
  2. using Excel2Json;
  3. using Fort23.UTool;
  4. namespace Fort23.Mono
  5. {
  6. [UIBinding(prefab = "EventMinLogWidget")]
  7. public partial class EventMinLogWidget : UIComponent
  8. {
  9. private EventConfig eventConfig;
  10. private void Init()
  11. {
  12. }
  13. public override void AddEvent()
  14. {
  15. }
  16. public override void DelEvent()
  17. {
  18. }
  19. public override void AddButtonEvent()
  20. {
  21. }
  22. public void CustomInit(int id, AccountFileInfo.EventList eventList)
  23. {
  24. eventConfig = ConfigComponent.Instance.Get<EventConfig>(id);
  25. if (eventList == null)
  26. {
  27. Text_Name.text = "???";
  28. }
  29. else
  30. {
  31. Text_Name.text = LanguageManager.Instance.Text(eventConfig.EventName);
  32. }
  33. }
  34. }
  35. }