private RunestoneRowCell addGridRowCellToVerticalGroup(int rowIdx) { RunestoneRowCell cell = this.m_gridRowCells[rowIdx]; bool flag = (rowIdx % 2) != 0; if (flag) { cell.Background.enabled = true; cell.Background.color = !flag ? ConfigUi.LIST_CELL_REGULAR_COLOR : ConfigUi.LIST_CELL_STRIPED_COLOR; } else { cell.Background.enabled = false; } cell.transform.SetParent(this.VerticalGroup, false); cell.gameObject.SetActive(true); return(cell); }
private void cleanupCells() { for (int i = 0; i < this.m_gridRowCells.Count; i++) { RunestoneRowCell cell = this.m_gridRowCells[i]; cell.transform.SetParent(base.RectTm, false); cell.gameObject.SetActive(false); } for (int j = 0; j < this.m_skillTitleCells.Count; j++) { IconWithText text = this.m_skillTitleCells[j]; text.transform.SetParent(base.RectTm, false); text.gameObject.SetActive(false); } for (int k = this.m_rewardGalleryCards.Count - 1; k >= 0; k--) { Card item = this.m_rewardGalleryCards[k]; this.m_rewardGalleryCards.Remove(item); PlayerView.Binder.CardRewardPool.returnObject(item); } }