public void OnFriendApplyVerifyBoxRetrun(string str) { CPlayerProfile profile = Singleton <CPlayerInfoSystem> .instance.GetProfile(); if (profile == null) { return; } FriendSysNetCore.Send_Request_BeFriend(profile.m_uuid, (uint)profile.m_iLogicWorldId, str, COM_ADD_FRIEND_TYPE.COM_ADD_FRIEND_NULL, -1); }
private void On_Friend_Verify_Send(CUIEvent uievent) { if (uievent == null) { Singleton <CUIManager> .instance.CloseForm(CFriendContoller.VerifyFriendFormPath); } else { CUIFormScript srcFormScript = uievent.m_srcFormScript; if (srcFormScript == null) { Singleton <CUIManager> .instance.CloseForm(CFriendContoller.VerifyFriendFormPath); } else { InputField component = srcFormScript.GetWidget(0).GetComponent <InputField>(); if (component == null) { Singleton <CUIManager> .instance.CloseForm(CFriendContoller.VerifyFriendFormPath); } else { string veriyText = CUIUtility.RemoveEmoji(component.text).Trim(); if (this.ullUid == 0) { Singleton <CUIManager> .instance.CloseForm(CFriendContoller.VerifyFriendFormPath); } else { if (this.m_bAddSearchFirend) { FriendSysNetCore.Send_Request_BeFriend(this.ullUid, this.dwLogicWorldId, veriyText); } else { FriendSysNetCore.Send_Request_BeFriend(this.ullUid, this.dwLogicWorldId, veriyText); Singleton <CFriendContoller> .instance.model.Remove(CFriendModel.FriendType.Recommend, this.ullUid, this.dwLogicWorldId); } this.ullUid = 0L; this.dwLogicWorldId = 0; this.m_bAddSearchFirend = false; this._inputName = null; Singleton <CUIManager> .instance.CloseForm(CFriendContoller.VerifyFriendFormPath); } } } } }
private void OnRoom_AddFriend(CUIEvent uiEvent) { GameObject gameObject = uiEvent.m_srcWidget.transform.parent.parent.gameObject; COM_PLAYERCAMP camp = COM_PLAYERCAMP.COM_PLAYERCAMP_1; int pos = 0; this.GetMemberPosInfo(gameObject, out camp, out pos); if (this.roomInfo != null) { MemberInfo memberInfo = this.roomInfo.GetMemberInfo(camp, pos); object[] inParameters = new object[] { camp, pos }; DebugHelper.Assert(memberInfo != null, "Room member info is NULL!! Camp -- {0}, Pos -- {1}", inParameters); if (memberInfo != null) { FriendSysNetCore.Send_Request_BeFriend(memberInfo.ullUid, (uint)memberInfo.iFromGameEntity); } } }
private void On_AddFriend(CUIEvent evt) { COMDT_FRIEND_INFO comdt_friend_info = Singleton <CFriendContoller> .GetInstance().search_info; if ((evt.m_srcWidgetBelongedListScript == null) && (comdt_friend_info != null)) { FriendSysNetCore.Send_Request_BeFriend(comdt_friend_info.stUin); } else { FriendShower component = evt.m_srcWidget.transform.parent.parent.parent.GetComponent <FriendShower>(); if (component != null) { COMDT_FRIEND_INFO data = this.model.GetInfo(CFriendModel.FriendType.Recommend, component.ullUid, component.dwLogicWorldID); FriendSysNetCore.Send_Request_BeFriend(component.ullUid, component.dwLogicWorldID); if (data != null) { this.model.Remove(CFriendModel.FriendType.Recommend, data); } } } }
private void OnSettle_AddFriend(CUIEvent uiEvent) { FriendSysNetCore.Send_Request_BeFriend(uiEvent.m_eventParams.commonUInt64Param1, (uint)uiEvent.m_eventParams.commonUInt64Param2); uiEvent.m_srcWidget.CustomSetActive(false); }