From 2db8b395ea4a512cf741132946c43c323fa28281 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 25 四月 2019 16:37:39 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Message/RichNormalEvent.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/System/Message/RichNormalEvent.cs b/System/Message/RichNormalEvent.cs
index 7281a2a..db06561 100644
--- a/System/Message/RichNormalEvent.cs
+++ b/System/Message/RichNormalEvent.cs
@@ -17,6 +17,7 @@
         RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JOINTEAM, this);
         RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.AncientRobotName, this);
         RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.AuctionBidding, this);
+        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.RandomChat, this);
     }
 
     public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
@@ -114,6 +115,18 @@
                     }
                 }
                 break;
+            case RichTextEventEnum.RandomChat:
+                {
+                    if (href.mSplits.ContainsKey("randomchat"))
+                    {
+                        var chatType = (ChatInfoType)int.Parse(href.mSplits["randomchat"]);
+                        ChatCtrl.Inst.presentChatType = chatType;
+                        ChatCtrl.Inst.openFromFairyTask = true;
+                        WindowCenter.Instance.Open<ChatWin>();
+                        WindowCenter.Instance.Open<MainInterfaceWin>();
+                    }
+                }
+                break;
         }
         return false;
     }

--
Gitblit v1.8.0