コード例 #1
0
 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;
 }
コード例 #2
0
 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)));
 }
コード例 #3
0
        public CommunityDescriptionDialog CreateCommunityDescriptionDialog(CommunityPendingInvite pendingInvite)
        {
            CommunityDescriptionDialog communityDescriptionDialog = this.InstantiateDialog <CommunityDescriptionDialog>(this.m_communityDescriptionDialogPrefab, this.Level3Canvas);

            communityDescriptionDialog.PopulateFromInvite(pendingInvite);
            return(communityDescriptionDialog);
        }
コード例 #4
0
 public void SetInviteForButton(CommunityPendingInvite pendingInvite)
 {
     this.m_communityInvite        = pendingInvite;
     this.m_communityNameText.text = this.m_communityInvite.CommunityName;
 }