LeagueTeaPartyOverView.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using ET;
  2. using FairyGUI;
  3. using Hutool;
  4. using System.Collections.Generic;
  5. using UI.League;
  6. using UnityEngine;
  7. namespace GFGGame
  8. {
  9. public class LeagueTeaPartyOverView : BaseWindow
  10. {
  11. private UI_LeagueTeaPartyOverUI _ui;
  12. private List<UI_comTeaPartyItem> teaPartyItemList = new List<UI_comTeaPartyItem>();
  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. packageName = UI_LeagueTeaPartyOverUI.PACKAGE_NAME;
  26. _ui = UI_LeagueTeaPartyOverUI.Create();
  27. this.viewCom = _ui.target;
  28. isfullScreen = true;
  29. _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("chahuibg");
  30. _ui.m_btnBack.onClick.Add(OnBtnBackClick);
  31. _ui.m_btnReward.onClick.Add(OnBtnRewardClick);
  32. _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
  33. _ui.m_btnRule.data = 300022;
  34. }
  35. protected override void AddEventListener()
  36. {
  37. base.AddEventListener();
  38. }
  39. protected override void OnShown()
  40. {
  41. base.OnShown();
  42. }
  43. protected override void OnHide()
  44. {
  45. base.OnHide();
  46. }
  47. protected override void RemoveEventListener()
  48. {
  49. base.RemoveEventListener();
  50. }
  51. private void OnBtnBackClick()
  52. {
  53. ViewManager.GoBackFrom(typeof(LeagueView).FullName);
  54. }
  55. private void OnBtnRewardClick()
  56. {
  57. ViewManager.Show<LeagueTeaPartyRewardView>();
  58. }
  59. }
  60. }