| | |
| | | { |
| | | |
| | | [SerializeField] ScrollerController scrollerController; |
| | | [SerializeField] HeroSelectBehaviour heroSelectBehaviour; |
| | | [SerializeField] Transform heroSelectBehaviour; |
| | | HeroSelectBehaviour fiterManager; //武将筛选 |
| | | |
| | | protected override void InitComponent() |
| | | { |
| | | fiterManager = HeroSelectBehaviour.Create(heroSelectBehaviour); |
| | | } |
| | | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | HeroUIManager.Instance.selectHeroCallListJob = 0; |
| | | HeroUIManager.Instance.selectHeroCallListCountry = 0; |
| | | |
| | | HeroUIManager.Instance.SortHeroCallList(); |
| | | scrollerController.OnRefreshCell += OnRefreshCell; |
| | |
| | | |
| | | public override void Refresh() |
| | | { |
| | | heroSelectBehaviour.Display(0, HeroUIManager.Instance.selectHeroListJob, HeroUIManager.Instance.selectHeroListCountry, SelectJobCountry); |
| | | fiterManager.Display(0, SelectJobCountry); |
| | | } |
| | | |
| | | void SelectJobCountry(int job, int country) |
| | | /// 回调参数: 职业,国家,伤害类型,6大战斗属性,特殊属性 |
| | | void SelectJobCountry(List<int> selects) |
| | | { |
| | | HeroUIManager.Instance.selectHeroCallListJob = job; |
| | | HeroUIManager.Instance.selectHeroCallListCountry = country; |
| | | HeroUIManager.Instance.selectHeroCallList = selects; |
| | | |
| | | HeroUIManager.Instance.SortHeroCallList(); |
| | | scrollerController.m_Scorller.RefreshActiveCellViews(); |
| | | } |