示例#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();
    }