示例#1
0
 private void HandleRemoveBlackListCmd(CommandParser.Command param)
 {
     ulong gUID = 0uL;
     ulong.TryParse(param.GetParam(1), out gUID);
     MC2S_RemoveBlackList mC2S_RemoveBlackList = new MC2S_RemoveBlackList();
     mC2S_RemoveBlackList.GUID = gUID;
     Globals.Instance.CliSession.Send(317, mC2S_RemoveBlackList);
 }
示例#2
0
 private void OnBlackBtnClick(GameObject go)
 {
     if (this.mGuildMember == null)
     {
         return;
     }
     if (this.friendType == 2)
     {
         GameMessageBox gameMessageBox = GameMessageBox.ShowMessageBox(Singleton<StringManager>.Instance.GetString("friend_24", new object[]
         {
             this.mGuildMember.Name
         }), MessageBox.Type.OKCancel, null);
         GameMessageBox expr_44 = gameMessageBox;
         expr_44.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_44.OkClick, new MessageBox.MessageDelegate(delegate(object obj)
         {
             MC2S_RemoveBlackList mC2S_RemoveBlackList = new MC2S_RemoveBlackList();
             mC2S_RemoveBlackList.GUID = this.mGuildMember.ID;
             Globals.Instance.CliSession.Send(317, mC2S_RemoveBlackList);
         }));
         this.friendType = 0;
     }
     else if (this.mGuildMember.ID == Globals.Instance.Player.Data.ID)
     {
         GameUIManager.mInstance.ShowMessageTipByKey("friend_32", 0f, 0f);
     }
     else
     {
         GameMessageBox gameMessageBox2 = GameMessageBox.ShowMessageBox(Singleton<StringManager>.Instance.GetString("friend_23", new object[]
         {
             this.mGuildMember.Name
         }), MessageBox.Type.OKCancel, null);
         GameMessageBox expr_DF = gameMessageBox2;
         expr_DF.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_DF.OkClick, new MessageBox.MessageDelegate(delegate(object obj)
         {
             MC2S_AddBlackList mC2S_AddBlackList = new MC2S_AddBlackList();
             mC2S_AddBlackList.GUID = this.mGuildMember.ID;
             Globals.Instance.CliSession.Send(315, mC2S_AddBlackList);
         }));
     }
     GameUIPopupManager.GetInstance().PopState(true, null);
 }
 private void OnBacklistClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (this.mChatInfo == null)
     {
         return;
     }
     if (this.friendType == 2)
     {
         GameMessageBox gameMessageBox = GameMessageBox.ShowMessageBox(Singleton<StringManager>.Instance.GetString("friend_24", new object[]
         {
             this.mChatInfo.Name
         }), MessageBox.Type.OKCancel, this.mChatInfo);
         GameMessageBox expr_5E = gameMessageBox;
         expr_5E.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_5E.OkClick, new MessageBox.MessageDelegate(delegate(object obj)
         {
             MC2S_RemoveBlackList mC2S_RemoveBlackList = new MC2S_RemoveBlackList();
             mC2S_RemoveBlackList.GUID = this.mChatInfo.PlayerID;
             Globals.Instance.CliSession.Send(317, mC2S_RemoveBlackList);
         }));
         this.friendType = 0;
     }
     else if (this.mChatInfo.PlayerID == Globals.Instance.Player.Data.ID)
     {
         GameUIManager.mInstance.ShowMessageTipByKey("friend_32", 0f, 0f);
     }
     else
     {
         GameMessageBox gameMessageBox2 = GameMessageBox.ShowMessageBox(Singleton<StringManager>.Instance.GetString("friend_23", new object[]
         {
             this.mChatInfo.Name
         }), MessageBox.Type.OKCancel, this.mChatInfo);
         GameMessageBox expr_FE = gameMessageBox2;
         expr_FE.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_FE.OkClick, new MessageBox.MessageDelegate(delegate(object obj)
         {
             MC2S_AddBlackList mC2S_AddBlackList = new MC2S_AddBlackList();
             mC2S_AddBlackList.GUID = this.mChatInfo.PlayerID;
             Globals.Instance.CliSession.Send(315, mC2S_AddBlackList);
         }));
     }
     this.EnablePersonalInfoLayer(false);
 }
示例#4
0
 private void OnRemoveBacklistOKClicked(object obj)
 {
     MC2S_RemoveBlackList mC2S_RemoveBlackList = new MC2S_RemoveBlackList();
     mC2S_RemoveBlackList.GUID = this.mFriendData.FriendData.GUID;
     Globals.Instance.CliSession.Send(317, mC2S_RemoveBlackList);
 }