| | |
| | | ShowMyRank(); |
| | | } |
| | | |
| | | void CreateScroller() |
| | | void ReflashScroller() |
| | | { |
| | | if (GuildManager.Instance.pageIndexList.Count < 4) |
| | | { |
| | |
| | | scroller.SetActive(true); |
| | | |
| | | var startCount = scroller.GetCellTotalCount(); |
| | | if (startCount > GuildManager.Instance.pageIndexList.Count) |
| | | if (startCount > GuildManager.Instance.pageIndexList.Count - 3) |
| | | { |
| | | scroller.Refresh(); |
| | | startCount = 0; |
| | | } |
| | | |
| | | for (int i = startCount + 3; i < GuildManager.Instance.pageIndexList.Count; i++) |
| | | { |
| | | scroller.AddCell(ScrollerDataType.Header, i); |
| | | } |
| | | scroller.Restart(); |
| | | } |
| | | |
| | | void CreateScroller() |
| | | { |
| | | if (GuildManager.Instance.pageIndexList.Count < 4) |
| | | { |
| | | empty.SetActive(true); |
| | | scroller.SetActive(false); |
| | | return; |
| | | } |
| | | empty.SetActive(false); |
| | | scroller.SetActive(true); |
| | | |
| | | scroller.Refresh(); |
| | | for (int i = 3; i < GuildManager.Instance.pageIndexList.Count; i++) |
| | | { |
| | | scroller.AddCell(ScrollerDataType.Header, i); |
| | | } |
| | |
| | | void OnRefreshFairyList() |
| | | { |
| | | ShowTop3(); |
| | | CreateScroller(); |
| | | ReflashScroller(); |
| | | ShowMyRank(); |
| | | } |
| | | } |