PartnerEpiChangeListItemView.ListItem.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. using FL.Data;
  8. namespace FL.FGUI
  9. {
  10. public partial class PartnerEpiChangeListItemView : IGListItemHandle
  11. {
  12. public int ItemIndex { get; private set; }
  13. void IGListItemHandle.OnRefresh(int index, object data)
  14. {
  15. ItemIndex = index;
  16. if (data is EpiChangeListData changeListData)
  17. {
  18. Ctrl.OnRefresh(index, changeListData);
  19. }
  20. }
  21. }
  22. public struct EpiChangeListData
  23. {
  24. public int SbId { get; private set; }
  25. public int MwId { get; private set; }
  26. public int PlanId { get; private set; }
  27. public int CurSelectId { get; private set; }
  28. public EpiChangeListData(int planId, int sbId, int mwId, int curSelectId)
  29. {
  30. PlanId = planId;
  31. SbId = sbId;
  32. MwId = mwId;
  33. CurSelectId = curSelectId;
  34. }
  35. }
  36. }