MailMailRwdItemCtrl.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FL.Data;
  7. using FL.Data.Items;
  8. using FL.Network;
  9. using System.Collections.Generic;
  10. using XGame.Framework.UI;
  11. namespace FL.FGUI
  12. {
  13. /// <summary>
  14. /// UI逻辑处理类
  15. /// </summary>
  16. /// <typeparam name=""></typeparam>
  17. public partial class MailMailRwdItemCtrl : UIController<MailMailRwdItemVM>
  18. {
  19. protected override void OnEnable(object intent)
  20. {
  21. AddUIListenres();
  22. }
  23. protected override void OnDisable()
  24. {
  25. RemoveUIListenres();
  26. }
  27. #region UI事件
  28. private void AddUIListenres()
  29. {
  30. }
  31. private void RemoveUIListenres()
  32. {
  33. }
  34. public void OnRefresh(int index, IMailRwdItem mailRwdItem)
  35. {
  36. VM.IsGetImg.visible = mailRwdItem.IsGet == true;
  37. VM.ItemBtn.Ctrl.ShowUI(mailRwdItem.Item);
  38. }
  39. #endregion
  40. }
  41. }