From 9203f8bd22b3cf3fa9bfd537fd16b2e86d7223b1 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 19 九月 2018 11:27:14 +0800
Subject: [PATCH] 3564【前端】队伍和仙盟频道移动至仙缘中
---
System/FriendSystem/New/SocialWin.cs | 139 +++++++++++++++++++++++++++------------------
1 files changed, 83 insertions(+), 56 deletions(-)
diff --git a/System/FriendSystem/New/SocialWin.cs b/System/FriendSystem/New/SocialWin.cs
index 360e9c2..93185e5 100644
--- a/System/FriendSystem/New/SocialWin.cs
+++ b/System/FriendSystem/New/SocialWin.cs
@@ -1,56 +1,83 @@
-锘縰sing System;
-using UnityEngine;
-using UnityEngine.UI;
-
-namespace Snxxz.UI
-{
- public class SocialWin : Window
- {
- [SerializeField] FunctionButton xianyuanBtn;
- [SerializeField] FunctionButtonGroup btnGroup;
- [SerializeField] Button closeBtn;
- [SerializeField] GameObject friendTipsObj;
- [SerializeField] ChatSendComponent m_ChatSend;
-
- protected override void BindController()
- {
-
- }
- protected override void AddListeners()
- {
- closeBtn.AddListener(CloseClick);
- xianyuanBtn.AddListener(ClickXianYuanBtn);
- }
- protected override void OnPreOpen()
- {
- m_ChatSend.parent = this;
- }
-
- protected override void OnActived()
- {
- base.OnActived();
- btnGroup.TriggerByOrder(functionOrder);
- }
-
- protected override void OnAfterOpen()
- {
-
- }
-
- protected override void OnPreClose()
- {
-
- }
-
- protected override void OnAfterClose()
- {
-
- }
-
- private void ClickXianYuanBtn()
- {
- friendTipsObj.SetActive(true);
- functionOrder = xianyuanBtn.order;
- }
- }
-}
+锘縰sing System;
+using UnityEngine;
+using UnityEngine.UI;
+
+namespace Snxxz.UI
+{
+ public class SocialWin : Window
+ {
+ [SerializeField] FunctionButton xianyuanBtn;
+ [SerializeField] FunctionButton m_TeamChat;
+ [SerializeField] FunctionButton m_FairyChat;
+ [SerializeField] FunctionButtonGroup btnGroup;
+ [SerializeField] Button closeBtn;
+ [SerializeField] GameObject friendTipsObj;
+ [SerializeField] ChatSendComponent m_ChatSend;
+
+ protected override void BindController()
+ {
+
+ }
+ protected override void AddListeners()
+ {
+ closeBtn.AddListener(CloseClick);
+ xianyuanBtn.AddListener(ClickXianYuanBtn);
+ m_TeamChat.AddListener(TeamChat);
+ m_FairyChat.AddListener(FairyChat);
+ }
+
+ protected override void OnPreOpen()
+ {
+ m_ChatSend.parent = this;
+ }
+
+ protected override void OnActived()
+ {
+ base.OnActived();
+ btnGroup.TriggerByOrder(functionOrder);
+ }
+
+ protected override void OnAfterOpen()
+ {
+
+ }
+
+ protected override void OnPreClose()
+ {
+ CloseChild();
+ }
+
+ protected override void OnAfterClose()
+ {
+
+ }
+
+ private void ClickXianYuanBtn()
+ {
+ CloseChild();
+ friendTipsObj.SetActive(true);
+ functionOrder = xianyuanBtn.order;
+ }
+
+ private void TeamChat()
+ {
+ CloseChild();
+ WindowCenter.Instance.Open<TeamChatWin>();
+ functionOrder = m_TeamChat.order;
+ }
+
+ private void FairyChat()
+ {
+ CloseChild();
+ WindowCenter.Instance.Open<FairyChatWin>();
+ functionOrder = m_FairyChat.order;
+ }
+
+ void CloseChild()
+ {
+ friendTipsObj.SetActive(false);
+ WindowCenter.Instance.CloseImmediately<TeamChatWin>();
+ WindowCenter.Instance.CloseImmediately<FairyChatWin>();
+ }
+ }
+}
--
Gitblit v1.8.0