AFZLView.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. 
  2. using System.Collections.Generic;
  3. using ET;
  4. using FairyGUI;
  5. using UI.DailyWelfare;
  6. using UnityEngine;
  7. namespace GFGGame
  8. {
  9. public class AFZLView : BaseWindow
  10. {
  11. private UI_SevenDayLoginUI _ui;
  12. private List<ActivityLoginCfg> _cfgs;
  13. public override void Dispose()
  14. {
  15. if (_ui != null)
  16. {
  17. _ui.Dispose();
  18. _ui = null;
  19. }
  20. base.Dispose();
  21. }
  22. protected override void OnInit()
  23. {
  24. base.OnInit();
  25. _cfgs = ActivityLoginCfgArray.Instance.GetCfgsByid(3001);
  26. _ui.m_list.itemRenderer = ListItemRender;
  27. _ui.m_comIcon.m_loaIcon.onClick.Add(OnListItemClick);
  28. }
  29. protected override void OnShown()
  30. {
  31. base.OnShown();
  32. UpdateView();
  33. }
  34. private void UpdateView()
  35. {
  36. }
  37. protected override void OnHide()
  38. {
  39. base.OnHide();
  40. }
  41. private void ListItemRender(int index, GObject obj)
  42. {
  43. }
  44. private async void OnListItemClick(EventContext context)
  45. {
  46. }
  47. }
  48. }