| | |
| | | [SerializeField] ButtonEx awardButton; |
| | | [SerializeField] ButtonEx lastLineButton; |
| | | [SerializeField] ButtonEx nextLineButton; |
| | | [SerializeField] ImageEx lastLineImage; |
| | | [SerializeField] ImageEx nextLineImage; |
| | | [SerializeField] ImageEx timeImage; |
| | | [SerializeField] TextEx timeText; |
| | | [SerializeField] ScrollerController scroller; |
| | |
| | | } |
| | | scroller.Restart(); |
| | | |
| | | lastLineButton.SetActive(currentTopRow > 0); |
| | | nextLineButton.SetActive(currentTopRow < totalRows - MAX_ROWS); |
| | | int displayState = manager.GetGuildBattleDisplayState(); |
| | | bool isTrucePeriod = displayState == 4 || displayState == 5; |
| | | lastLineButton.SetActive(isTrucePeriod && currentTopRow > 0); |
| | | nextLineButton.SetActive(isTrucePeriod && currentTopRow < totalRows - MAX_ROWS); |
| | | |
| | | string showStr = displayState == 4 ? "GuildAtkDefBatTreasureBlue" : "GuildAtkDefBatTreasureRed"; |
| | | lastLineImage.SetSprite(showStr); |
| | | nextLineImage.SetSprite(showStr); |
| | | } |
| | | |
| | | void OnRefreshCell(ScrollerDataType type, CellView cell) |