// Token: 0x060061C9 RID: 25033 RVA: 0x00227FC8 File Offset: 0x002263C8 protected override void SetPickerContentFromApiModel(VRCUiContentButton content, object am) { ApiWorld.WorldInstance wi = (ApiWorld.WorldInstance)am; string detail = (wi.count <= 0) ? string.Empty : wi.count.ToString(); ApiWorld.WorldInstance.AccessType accessType = wi.GetAccessType(); ApiWorld.WorldInstance.AccessDetail accessDetail = ApiWorld.WorldInstance.GetAccessDetail(accessType); Action action = null; if (accessType == ApiWorld.WorldInstance.AccessType.PrivatePopCounter) { content.EnableDetail(0, false); content.SetDetailShouldShowImage(1, false); content.EnableDetail(2, false); content.EnableDetail(4, true); content.SetDetailText(5, detail); } else { content.EnableDetail(0, true); content.SetDetailText(0, detail); content.SetDetailShouldShowImage(1, true); if (wi.count >= this.world.capacity) { } content.EnableDetail(2, true); content.SetDetailText(3, "#" + wi.idOnly + " " + accessDetail.shortName); content.EnableDetail(4, false); action = delegate { this.ShowWorldInstanceDetails(this.world, wi); }; } content.Initialize(this.world.thumbnailImageUrl, this.world.name, action, this.world.id); }
// Token: 0x060061D2 RID: 25042 RVA: 0x00228338 File Offset: 0x00226738 protected override void SetPickerContentFromApiModel(VRCUiContentButton content, object am) { ApiWorld w = (ApiWorld)am; content.SetDetailText(0, (w.occupants <= 0) ? string.Empty : w.occupants.ToString()); if (content.contentId != w.id) { content.Initialize(w.thumbnailImageUrl, w.name, delegate { this.ShowRoomDetails(w); }, w.id); } }