public void OnMentorApplyVerifyBoxRetrun(string str) { CPlayerProfile profile = Singleton <CPlayerInfoSystem> .instance.GetProfile(); if (profile == null) { return; } FriendSysNetCore.Send_Request_BeMentor(profile.m_uuid, (uint)profile.m_iLogicWorldId, this.m_addViewtype, str); }
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_SNSFriend_SendCoin(CUIEvent uievent) { ulong ullUid = uievent.m_eventParams.commonUInt64Param1; uint dwLogicWorldID = (uint)uievent.m_eventParams.commonUInt64Param2; COMDT_FRIEND_INFO comdt_friend_info = this.model.GetInfo(CFriendModel.FriendType.SNS, ullUid, dwLogicWorldID); if (comdt_friend_info != null) { FriendSysNetCore.Send_FriendCoin(comdt_friend_info.stUin, COM_FRIEND_TYPE.COM_FRIEND_TYPE_SNS); } }
private void On_Refuse_RequestFriend(CUIEvent uievent) { FriendShower component = uievent.m_srcWidget.transform.parent.parent.parent.GetComponent <FriendShower>(); if (component != null) { COMDT_FRIEND_INFO comdt_friend_info = this.model.GetInfo(CFriendModel.FriendType.RequestFriend, component.ullUid, component.dwLogicWorldID); if (comdt_friend_info != null) { FriendSysNetCore.Send_DENY_BeFriend(comdt_friend_info.stUin); } } }
private void On_Friend_SNS_ReCall(CUIEvent uievent) { FriendShower component = uievent.m_srcWidget.transform.parent.parent.parent.GetComponent <FriendShower>(); if (component != null) { COMDT_FRIEND_INFO comdt_friend_info = this.model.GetInfo(CFriendModel.FriendType.SNS, component.ullUid, component.dwLogicWorldID); if (comdt_friend_info != null) { FriendSysNetCore.ReCallSnsFriend(comdt_friend_info.stUin, COM_FRIEND_TYPE.COM_FRIEND_TYPE_SNS); } } }
private void On_DelFriend_OK(CUIEvent evt) { FriendShower component = this.com.transform.parent.parent.parent.GetComponent <FriendShower>(); if (component != null) { COMDT_FRIEND_INFO comdt_friend_info = this.model.GetInfo(CFriendModel.FriendType.GameFriend, component.ullUid, component.dwLogicWorldID); if (comdt_friend_info != null) { FriendSysNetCore.Send_Del_Friend(comdt_friend_info.stUin); } } }
public void On_SearchFriend(CUIEvent uiEvent) { this.Clear_SearchFriend(); this.searchFriendShower.gameObject.CustomSetActive(false); if (string.IsNullOrEmpty(this.input.text)) { Singleton <CUIManager> .GetInstance().OpenMessageBox(UT.GetText("Friend_Input_Tips"), false); } else { FriendSysNetCore.Send_Serch_Player(this.input.text); } this.Refresh_Friend_Recommand_List_Pos(); }
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); } } }
public void Init() { Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Friend_SerchFriend, new CUIEventManager.OnUIEventHandler(this.On_SearchFriend)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Friend_Close_AddForm, new CUIEventManager.OnUIEventHandler(this.On_Friend_Close_AddForm)); CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(CFriendContoller.AddFriendFormPath, false, true); this.input = script.transform.FindChild("GameObject/SearchFriend/InputField/Text").GetComponent <Text>(); this.searchFriendShower = script.transform.FindChild("GameObject/SearchFriend/Result/Friend").GetComponent <FriendShower>(); this.searchFriendShower.gameObject.CustomSetActive(false); this.recommandFriendListCom = Utility.GetComponetInChild <CUIListScript>(script.gameObject, "GameObject/RecommandList"); this.buttons_node = script.transform.FindChild("GameObject/Buttons").gameObject; this.info_text = script.transform.Find("GameObject/SearchFriend/Result/info").gameObject; if (this.info_text != null) { this.info_text.CustomSetActive(false); } FriendSysNetCore.Send_Request_RecommandFriend_List(); this.Refresh(); this.bShow = true; }
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); }