| | |
| | | HeroUIManager.Instance.SortHeroDeleteList(); |
| | | heroSelectBehaviour.Display(0, HeroUIManager.Instance.selectHeroDeleteListJob, HeroUIManager.Instance.selectHeroDeleteListCountry, SelectJobCountry); |
| | | RefreshEmptyTip(); |
| | | |
| | | //外部选中 |
| | | HeroUIManager.Instance.SelectDeleteHero(HeroManager.Instance.GetHero(HeroUIManager.Instance.jumpDeleteHeroGuid)); |
| | | |
| | | CreateScroller(); |
| | | } |
| | | |
| | |
| | | PackManager.Instance.RefreshItemLockEvent -= RefreshItemLockEvent; |
| | | ItemLogicUtility.Instance.OnGetItemShowEvent -= OnGetItemShowEvent; |
| | | HeroUIManager.Instance.selectDeleteHeroList.Clear(); |
| | | HeroUIManager.Instance.jumpDeleteHeroGuid = ""; |
| | | } |
| | | |
| | | void CreateScroller() |
| | |
| | | } |
| | | } |
| | | scroller.Restart(); |
| | | scroller.JumpIndex(FindJumpIndexByHero(HeroUIManager.Instance.jumpDeleteHeroGuid)); |
| | | } |
| | | |
| | | void OnRefreshCell(ScrollerDataType type, CellView cell) |
| | |
| | | } |
| | | |
| | | void OnGetItemShowEvent() |
| | | { |
| | | { |
| | | HeroUIManager.Instance.SortHeroDeleteList(); |
| | | CreateScroller(); |
| | | } |
| | | |
| | | |
| | | int FindJumpIndexByHero(string guid) |
| | | { |
| | | var hero = HeroManager.Instance.GetHero(guid); |
| | | if (hero == null) |
| | | return -1; |
| | | if (hero.Quality > HeroUIManager.Instance.jumpDeleteHeroQuality && !HeroUIManager.Instance.isJumpDeleteHero) |
| | | { |
| | | return -1; |
| | | } |
| | | return HeroUIManager.Instance.heroDeleteSortList.IndexOf(guid) / 5 - 1; |
| | | } |
| | | } |