ItemRewardItemView.ListItem.cs 512 B

123456789101112131415161718192021
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. using FL.Network;
  8. namespace FL.FGUI
  9. {
  10. public partial class ItemRewardItemView : 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 KindItem);
  17. }
  18. }
  19. }