PartnerSbBagListLineItemView.ListItem.cs 794 B

123456789101112131415161718192021222324252627282930
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. using System.Collections.Generic;
  8. namespace FL.FGUI
  9. {
  10. public partial class PartnerSbBagListLineItemView : IGListItemHandle
  11. {
  12. public int ItemIndex { get; private set; }
  13. void IGListItemHandle.OnRefresh(int index, object data)
  14. {
  15. ItemIndex = index;
  16. Ctrl.OnRefresh(index, data as PartnerSbBagListParam);
  17. }
  18. }
  19. public class PartnerSbBagListParam
  20. {
  21. /// <summary>
  22. /// 道具类型,为0则是标题,否则是列表
  23. /// </summary>
  24. public int Type;
  25. public string Title;
  26. public List<int> SbList;
  27. }
  28. }