Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Quake2-iOS/SavedGameViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ extension SavedGameViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
selectedSavedGame = saves[indexPath.row]
loadGameButton.isHidden = false
#if os(tvOS)
tableView.cellForRow(at: indexPath)?.contentView.backgroundColor = .lightGray
#endif
}

func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
#if os(tvOS)
tableView.cellForRow(at: indexPath)?.contentView.backgroundColor = .none
#endif
}

// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
Expand All @@ -86,6 +95,9 @@ extension SavedGameViewController: UITableViewDataSource {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell")!

cell.textLabel?.text = saves[indexPath.row]//.replacingOccurrences(of: ".svg", with: "")
#if os(tvOS)
cell.textLabel?.textColor = .black
#endif
return cell
}

Expand Down