예제 #1
0
 // Token: 0x0600EC36 RID: 60470 RVA: 0x003F1D10 File Offset: 0x003EFF10
 public void SetGroupInfo(ProChatGroupCompactInfo groupInfo)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetGroupInfoProChatGroupCompactInfo_hotfix != null)
     {
         this.m_SetGroupInfoProChatGroupCompactInfo_hotfix.call(new object[]
         {
             this,
             groupInfo
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_groupInfo             = groupInfo;
     this.m_groupIconImage.sprite = AssetUtility.Instance.GetSprite(UIUtility.GetPlayerSmallHeadIconImageName(HeadIconTools.GetHeadPortrait(groupInfo.Owner.HeadIcon)));
     UIUtility.SetPlayerHeadFrame(this.m_groupHeadFrameTransform, HeadIconTools.GetHeadFrame(groupInfo.Owner.HeadIcon), true, "Normal");
     this.m_onlinePlayerNumText.text = string.Format(this.m_configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Friend_OnlineCount), groupInfo.OnlineUserCount);
     this.m_groupNameText.text       = groupInfo.ChatGroupName;
 }
예제 #2
0
 // Token: 0x06006E7B RID: 28283 RVA: 0x001EEDF4 File Offset: 0x001ECFF4
 public ChatGroupCompactInfo(ProChatGroupCompactInfo pbGroupInfo)
 {
     this.ChatGroupId     = pbGroupInfo.ChatGroupId;
     this.ChatGroupName   = pbGroupInfo.ChatGroupName;
     this.Owner           = new ChatUserCompactInfo(pbGroupInfo.Owner);
     this.UserCount       = pbGroupInfo.UserCount;
     this.OnlineUserCount = pbGroupInfo.OnlineUserCount;
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ctorProChatGroupCompactInfo_hotfix != null)
     {
         this.m_ctorProChatGroupCompactInfo_hotfix.call(new object[]
         {
             this,
             pbGroupInfo
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
 }