Exemplo n.º 1
0
 private void OnViewBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_002");
     if (this.mRecordData == null || this.mRecordData.RecordData == null)
     {
         return;
     }
     LocalPlayer player = Globals.Instance.Player;
     if (player.Data.ID == this.mRecordData.RecordData.PlayerID)
     {
         return;
     }
     MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
     mC2S_QueryRemotePlayer.PlayerID = this.mRecordData.RecordData.PlayerID;
     Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
     GameUIPopupManager.GetInstance().PopState(false, null);
 }
Exemplo n.º 2
0
 private void HandleQueryRemotePlayerCmd(CommandParser.Command param)
 {
     ulong playerID = 0uL;
     ulong.TryParse(param.GetParam(1), out playerID);
     MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
     mC2S_QueryRemotePlayer.PlayerID = playerID;
     Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
 }
Exemplo n.º 3
0
 private void OnViewClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (Globals.Instance.SenceMgr.sceneInfo != null)
     {
         GameUIManager.mInstance.ShowMessageTipByKey("chatTxt26", 0f, 0f);
         return;
     }
     if (this.mChatInfo != null)
     {
         MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
         mC2S_QueryRemotePlayer.PlayerID = this.mChatInfo.PlayerID;
         Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
         this.mBaseLayer.Close();
     }
 }
Exemplo n.º 4
0
 private void OnViewTraget(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (this.data == null || this.data.RankData == null)
     {
         return;
     }
     LocalPlayer player = Globals.Instance.Player;
     if (player.Data.ID == this.data.RankData.Data.GUID)
     {
         return;
     }
     if (this.data.IsFarmRebot)
     {
         if (player.Data.Stamina < GameConst.GetInt32(36))
         {
             GUIShortcutBuyItem.Show(GUIShortcutBuyItem.BuyType.Stamina);
             return;
         }
         this.SendFarmMsg(5);
     }
     else
     {
         MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
         mC2S_QueryRemotePlayer.PlayerID = this.data.RankData.Data.GUID;
         Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
     }
 }
Exemplo n.º 5
0
 private void OnViewTeamBtnClick(GameObject go)
 {
     if (this.mGuildMember != null)
     {
         MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
         mC2S_QueryRemotePlayer.PlayerID = this.mGuildMember.ID;
         Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
         GameUIPopupManager.GetInstance().PopState(true, null);
     }
 }
Exemplo n.º 6
0
 private void OnViewClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
     mC2S_QueryRemotePlayer.PlayerID = this.mRankData.Data.GUID;
     Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
     this.CloseAll();
 }