| | |
| | | |
| | | public class GuildRankWin : UIBase |
| | | { |
| | | [SerializeField] Transform empty; |
| | | [SerializeField] GuildTop3Cell[] guildTop3Cells; |
| | | [SerializeField] ScrollerController scroller; |
| | | [SerializeField] TextEx rankText; |
| | |
| | | |
| | | void CreateScroller() |
| | | { |
| | | scroller.Refresh(); |
| | | var cnt = manager.pageCnt; |
| | | for (int i = 3; i < cnt; i++) |
| | | if (GuildManager.Instance.pageIndexList.Count < 4) |
| | | { |
| | | scroller.AddCell(ScrollerDataType.Header, i); |
| | | empty.SetActive(true); |
| | | scroller.SetActive(false); |
| | | return; |
| | | } |
| | | scroller.Restart(); |
| | | } |
| | | empty.SetActive(false); |
| | | scroller.SetActive(true); |
| | | |
| | | void RefreshScroller() |
| | | { |
| | | var startCount = scroller.GetCellTotalCount(); |
| | | if (startCount > GuildManager.Instance.pageIndexList.Count) |
| | | { |
| | |
| | | } |
| | | scroller.Restart(); |
| | | } |
| | | |
| | | |
| | | void OnRefreshCell(ScrollerDataType type, CellView cell) |
| | | { |
| | |
| | | void OnRefreshFairyList() |
| | | { |
| | | ShowTop3(); |
| | | RefreshScroller(); |
| | | CreateScroller(); |
| | | ShowMyRank(); |
| | | } |
| | | } |