Пример #1
0
 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);
     }
 }
Пример #2
0
 public void OnDoubleClickLine(MenuOnlineSessionLine gameSessionLine)
 {
     this.SelectedSessionLine = gameSessionLine;
     this.EnforceRadio();
     if (this.SelectedLobby != null)
     {
         this.JoinSelectedGame();
     }
 }
Пример #3
0
 public void OnToggleLine(MenuOnlineSessionLine gameSessionLine)
 {
     if (gameSessionLine != null && gameSessionLine.SelectionToggle.State)
     {
         this.SelectedSessionLine = gameSessionLine;
         this.EnforceRadio();
     }
     else
     {
         this.SelectedSessionLine = null;
     }
 }
Пример #4
0
    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();
    }