123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using ET;
- using FairyGUI;
- using Hutool;
- using System.Collections.Generic;
- using UI.League;
- using UnityEngine;
- namespace GFGGame
- {
- public class LeagueTeaPartyOverView : BaseWindow
- {
- private UI_LeagueTeaPartyOverUI _ui;
- private List<UI_comTeaPartyItem> teaPartyItemList = new List<UI_comTeaPartyItem>();
- public override void Dispose()
- {
- if (_ui != null)
- {
- _ui.Dispose();
- _ui = null;
- }
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_LeagueTeaPartyOverUI.PACKAGE_NAME;
- _ui = UI_LeagueTeaPartyOverUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("chahuibg");
- _ui.m_btnBack.onClick.Add(OnBtnBackClick);
- _ui.m_btnReward.onClick.Add(OnBtnRewardClick);
- _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
- _ui.m_btnRule.data = 300022;
- }
- protected override void AddEventListener()
- {
- base.AddEventListener();
- }
- protected override void OnShown()
- {
- base.OnShown();
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- protected override void RemoveEventListener()
- {
- base.RemoveEventListener();
- }
-
- private void OnBtnBackClick()
- {
- ViewManager.GoBackFrom(typeof(LeagueView).FullName);
- }
- private void OnBtnRewardClick()
- {
- ViewManager.Show<LeagueTeaPartyRewardView>();
- }
- }
- }
|