private void EnforceRadio() { for (int i = 0; i < this.GameSessionsTable.GetChildren().Count; i++) { MenuOnlineSessionLine component = this.GameSessionsTable.GetChildren()[i].GetComponent <MenuOnlineSessionLine>(); component.SelectionToggle.State = (component.LobbyDescription == this.SelectedLobby); } }
public void OnDoubleClickLine(MenuOnlineSessionLine gameSessionLine) { this.SelectedSessionLine = gameSessionLine; this.EnforceRadio(); if (this.SelectedLobby != null) { this.JoinSelectedGame(); } }
public void OnToggleLine(MenuOnlineSessionLine gameSessionLine) { if (gameSessionLine != null && gameSessionLine.SelectionToggle.State) { this.SelectedSessionLine = gameSessionLine; this.EnforceRadio(); } else { this.SelectedSessionLine = null; } }
private void SetupGameSessionLine(AgeTransform tableItem, MenuJoinGameScreen.LobbyDescription lobbyDescription, int index) { MenuOnlineSessionLine component = tableItem.GetComponent <MenuOnlineSessionLine>(); if (component == null) { Diagnostics.LogError("In the MenuJoinGameScreen, trying to refresh a table item that is not a GameSessionLine"); return; } component.LobbyDescription = lobbyDescription; component.Parent = this; component.RefreshContent(); }