// Token: 0x06002527 RID: 9511 RVA: 0x000A1EE4 File Offset: 0x000A00E4 private void AddServer(ServerBrowserController.ServerInfo serverInfo) { this.currentServers.Add(serverInfo); ServerBrowserStripController serverBrowserStripController = serverInfo.stripController = UnityEngine.Object.Instantiate <GameObject>(this.stripPrefab, this.stripContainer).GetComponent <ServerBrowserStripController>(); serverBrowserStripController.nameLabel.SetText(serverInfo.name); serverBrowserStripController.addressLabel.SetText(serverInfo.address.ToString()); serverBrowserStripController.playerCountLabel.SetText(serverInfo.playerCountString); serverBrowserStripController.latencyLabel.SetText(serverInfo.latencyString); serverInfo.stripController.gameObject.SetActive(true); }
// Token: 0x0600252F RID: 9519 RVA: 0x000A20C4 File Offset: 0x000A02C4 public void SetLayoutHorizontal() { Rect rect = ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__GetRect | 3_1 (this.serverBrowserController.nameHeader); Rect rect2 = ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__GetRect | 3_1 (this.serverBrowserController.addressHeader); Rect rect3 = ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__GetRect | 3_1 (this.serverBrowserController.playerCountHeader); Rect rect4 = ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__GetRect | 3_1 (this.serverBrowserController.latencyHeader); int i = 0; int childCount = this.rectTransform.childCount; while (i < childCount) { ServerBrowserStripController component = this.rectTransform.GetChild(i).GetComponent <ServerBrowserStripController>(); ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__MatchRect | 3_0 ((RectTransform)component.nameLabel.transform, rect); ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__MatchRect | 3_0 ((RectTransform)component.addressLabel.transform, rect2); ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__MatchRect | 3_0 ((RectTransform)component.playerCountLabel.transform, rect3); ServerBrowserController.StripLayoutGroup.< SetLayoutHorizontal > g__MatchRect | 3_0 ((RectTransform)component.latencyLabel.transform, rect4); i++; } }