public void PopulateFromInvite(CommunityPendingInvite pendingInvite) { this.m_headerText.text = pendingInvite.CommunityName; this.m_membersText.text = StaticDB.GetString(this.COMMUNITIES_DESCRIPTION_MEMBERS_KEY, "[PH] Members: %d").Replace("%d", pendingInvite.CommunityMemberCount.ToString()); this.m_leaderText.text = MobileClient.FormatString(StaticDB.GetString(this.COMMUNITIES_DESCRIPTION_INVITED_BY_KEY, "[PH] Invited by: %s"), pendingInvite.Inviter); this.m_descriptionText.text = pendingInvite.CommunityDescription; }
public void SetInviteForButton(CommunityPendingInvite pendingInvite) { this.m_communityInvite = pendingInvite; this.m_headerText.text = MobileClient.FormatString(StaticDB.GetString("COMMUNITIES_INVITIED_BY", "COMMUNITIES_INVITIED_BY"), pendingInvite.Inviter); this.m_communityNameText.text = this.m_communityInvite.CommunityName; this.m_communityIcon.sprite = GeneralHelpers.LoadIconAsset(AssetBundleType.Icons, (int)((pendingInvite.AvatarId != 0u) ? pendingInvite.AvatarId : ((uint)StaticDB.communityIconDB.GetRecord(1).IconFileID))); }
public CommunityDescriptionDialog CreateCommunityDescriptionDialog(CommunityPendingInvite pendingInvite) { CommunityDescriptionDialog communityDescriptionDialog = this.InstantiateDialog <CommunityDescriptionDialog>(this.m_communityDescriptionDialogPrefab, this.Level3Canvas); communityDescriptionDialog.PopulateFromInvite(pendingInvite); return(communityDescriptionDialog); }
public void SetInviteForButton(CommunityPendingInvite pendingInvite) { this.m_communityInvite = pendingInvite; this.m_communityNameText.text = this.m_communityInvite.CommunityName; }