| | |
| | | { |
| | | [SerializeField] Button storeBtn; |
| | | [SerializeField] ScrollerController scroller; |
| | | [SerializeField] HeroSelectBehaviour heroSelectBehaviour; |
| | | [SerializeField] Transform heroSelectBehaviour; |
| | | HeroSelectBehaviour fiterManager; //武将筛选 |
| | | [SerializeField] GameObject noHeroObj; |
| | | [SerializeField] Button quickSelectBtn; |
| | | [SerializeField] Button deleteBtn; |
| | |
| | | }); |
| | | quickSelectBtn.AddListener(QuickSelect); |
| | | deleteBtn.AddListener(DeleteHero); |
| | | fiterManager = HeroSelectBehaviour.Create(heroSelectBehaviour); |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | |
| | | PackManager.Instance.RefreshItemLockEvent += RefreshItemLockEvent; |
| | | ItemLogicUtility.Instance.OnGetItemShowEvent += OnGetItemShowEvent; |
| | | |
| | | HeroUIManager.Instance.selectHeroDeleteListJob = 0; |
| | | HeroUIManager.Instance.selectHeroDeleteListCountry = 0; |
| | | |
| | | HeroUIManager.Instance.SortHeroDeleteList(); |
| | | heroSelectBehaviour.Display(0, HeroUIManager.Instance.selectHeroDeleteListJob, HeroUIManager.Instance.selectHeroDeleteListCountry, SelectJobCountry); |
| | | fiterManager.Display(0, SelectJobCountry); |
| | | RefreshEmptyTip(); |
| | | |
| | | //外部选中 |
| | | HeroUIManager.Instance.SelectDeleteHero(HeroManager.Instance.GetHero(HeroUIManager.Instance.jumpDeleteHeroGuid)); |
| | | |
| | | CreateScroller(); |
| | | // CreateScroller(); |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | |
| | | _cell.Display(cell.index); |
| | | } |
| | | |
| | | void SelectJobCountry(int job, int country) |
| | | /// 回调参数: 职业,国家,伤害类型,6大战斗属性,特殊属性 |
| | | void SelectJobCountry(List<int> selects) |
| | | { |
| | | HeroUIManager.Instance.selectHeroDeleteListJob = job; |
| | | HeroUIManager.Instance.selectHeroDeleteListCountry = country; |
| | | HeroUIManager.Instance.selectHeroDeleteList = selects; |
| | | HeroUIManager.Instance.SortHeroDeleteList(); |
| | | CreateScroller(); |
| | | RefreshEmptyTip(); |