PartnerBookTextItemView.ListItem.cs 613 B

12345678910111213141516171819202122232425
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. namespace FL.FGUI
  8. {
  9. public partial class PartnerBookTextItemView : IGListItemHandle
  10. {
  11. public int ItemIndex { get; private set; }
  12. void IGListItemHandle.OnRefresh(int index, object data)
  13. {
  14. ItemIndex = index;
  15. Ctrl.OnRefresh(index, data as PartnerBookTextParam);
  16. }
  17. }
  18. public class PartnerBookTextParam
  19. {
  20. public int attrId;
  21. public int val;
  22. }
  23. }