public TableCell CellForIdx(int row) { LeaderboardTableCell _originalCell = Instantiate(_downloadListTableCellInstance); PlayerListTableCell _tableCell = _originalCell.gameObject.AddComponent <PlayerListTableCell>(); _tableCell.Init(); _tableCell.rank = 0; _tableCell.showFullCombo = false; _tableCell.playerName = _playersList[row].playerName; _tableCell.progress = (_playersList[row].playerState == PlayerState.DownloadingSongs ? (_playersList[row].playerProgress / 100f) : 1f); _tableCells.Add(_tableCell); return(_tableCell); }
public TableCell CellForIdx(int row) { LeaderboardTableCell _originalCell = Instantiate(_downloadListTableCellInstance); PlayerListTableCell _tableCell = _originalCell.gameObject.AddComponent <PlayerListTableCell>(); _tableCell.Init(); _tableCell.rank = 0; _tableCell.showFullCombo = false; _tableCell.playerName = _playersList[row].playerName; _tableCell.progress = (_playersList[row].playerState == PlayerState.DownloadingSongs ? (_playersList[row].playerProgress / 100f) : 1f); _tableCell.IsTalking = InGameOnlineController.Instance.VoiceChatIsTalking(_playersList[row].playerId); _tableCell.NameColor = _playersList[row].playerNameColor; _tableCell.playerInfo = _playersList[row]; _tableCell.buttonsInterface = this; _tableCell.Update(); _tableCells.Add(_tableCell); return(_tableCell); }
public TableCell CellForIdx(TableView tableView, int row) { LeaderboardTableCell _originalCell = Instantiate(_downloadListTableCellInstance); PlayerListTableCell _tableCell = _originalCell.gameObject.AddComponent <PlayerListTableCell>(); _tableCell.Init(); _tableCell.rank = 0; _tableCell.showFullCombo = false; _tableCell.playerName = string.Empty; _tableCell.progress = 0f; _tableCell.IsTalking = false; _tableCell.NameColor = new Color32(255, 255, 255, 255); _tableCell.playerInfo = null; _tableCell.buttonsInterface = this; _tableCell.Update(); _tableCells.Add(_tableCell); return(_tableCell); }