public override void RefreshContent() { base.RefreshContent(); if (this.Empire != null) { if (this.FilteredCities == null) { this.FilteredCities = this.departmentOfTheInterior.NonInfectedCities; } this.CitiesTable.Height = 0f; this.CitiesTable.ReserveChildren(this.FilteredCities.Count, this.CityLinePrefab, "CityLine"); this.CitiesTable.RefreshChildrenIList <City>(this.FilteredCities, this.refreshCityLineDelegate, true, false); this.CitiesTable.ArrangeChildren(); if (this.CitiesScrollView != null) { this.CitiesScrollView.OnPositionRecomputed(); } this.EnforceRadio(); this.OnInteractionAllowedChanged(); SortedLinesTable component = this.CitiesTable.GetComponent <SortedLinesTable>(); if (component != null) { component.SortLines(); } } }
public override void RefreshContent() { base.RefreshContent(); this.GameSessionsTable.Height = 0f; this.GameSessionsTable.ReserveChildren(this.LobbyDescriptions.Count, this.GameSessionLinePrefab, "Item"); this.GameSessionsTable.RefreshChildrenIList <MenuJoinGameScreen.LobbyDescription>(this.LobbyDescriptions, this.setupGameSessionLineDelegate, true, false); SortedLinesTable component = this.GameSessionsTable.GetComponent <SortedLinesTable>(); if (component != null) { component.SortLines(); } this.GameSessionsTable.ArrangeChildren(); this.GameSessionsScrollView.OnPositionRecomputed(); this.EnforceRadio(); this.JoinButton.AgeTransform.Enable = false; }
public override void RefreshContent() { base.RefreshContent(); if (this.Empire != null) { this.FilteredFortresses = this.departmentOfTheInterior.OccupiedFortresses; if (this.FilteredFortresses != null) { this.FortressesTable.Height = 0f; this.FortressesTable.ReserveChildren(this.FilteredFortresses.Count, this.FortressLinePrefab, "FortressLine"); this.FortressesTable.RefreshChildrenIList <Fortress>(this.FilteredFortresses, this.refreshFortressLineDelegate, true, false); this.FortressesTable.ArrangeChildren(); SortedLinesTable component = this.FortressesTable.GetComponent <SortedLinesTable>(); if (component != null) { component.SortLines(); } } } }
public override void RefreshContent() { base.RefreshContent(); if (this.listing != null) { this.ListingNumber++; this.listing = null; } if (this.listing == null) { this.listing = UnityCoroutine.StartCoroutine(this, this.ListGamesAsync(this.ListingNumber), new EventHandler <CoroutineExceptionEventArgs>(this.ListGamesAsync_CoroutineExceptionHandler)); if (this.listing.IsFinished) { this.listing = null; } } SortedLinesTable component = this.LoadSaveContainer.GetComponent <SortedLinesTable>(); if (component != null) { component.SortLines(); } this.RefreshButtons(); }