From 55fa84e7079b06de00a0f9d92ddc1c11c60bd562 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期二, 30 十月 2018 15:29:49 +0800
Subject: [PATCH] 4428 【前端】【1.2.0】社交按钮界面标签页选中逻辑优化
---
System/FriendSystem/New/SocialWin.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/System/FriendSystem/New/SocialWin.cs b/System/FriendSystem/New/SocialWin.cs
index 894f70d..111228d 100644
--- a/System/FriendSystem/New/SocialWin.cs
+++ b/System/FriendSystem/New/SocialWin.cs
@@ -14,6 +14,8 @@
[SerializeField] GameObject friendTipsObj;
[SerializeField] ChatSendComponent m_ChatSend;
+ SocialModel socialModel { get { return ModelCenter.Instance.GetModel<SocialModel>(); } }
+
protected override void BindController()
{
@@ -28,12 +30,17 @@
protected override void OnPreOpen()
{
+ socialModel.SetDefaultSelectTitle();
m_ChatSend.parent = this;
}
protected override void OnActived()
{
base.OnActived();
+ if(!WindowJumpMgr.Instance.IsJumpState)
+ {
+ functionOrder = (int)socialModel.selectType;
+ }
btnGroup.TriggerByOrder(functionOrder);
}
@@ -57,6 +64,7 @@
private void ClickXianYuanBtn()
{
+ socialModel.UpdateSelectTitle(SocialModel.SocialType.XianYuan);
CloseChild();
friendTipsObj.SetActive(true);
functionOrder = xianyuanBtn.order;
@@ -64,6 +72,7 @@
private void TeamChat()
{
+ socialModel.UpdateSelectTitle(SocialModel.SocialType.Team);
CloseChild();
WindowCenter.Instance.Open<TeamChatWin>();
functionOrder = m_TeamChat.order;
@@ -71,6 +80,7 @@
private void FairyChat()
{
+ socialModel.UpdateSelectTitle(SocialModel.SocialType.Union);
CloseChild();
WindowCenter.Instance.Open<FairyChatWin>();
functionOrder = m_FairyChat.order;
--
Gitblit v1.8.0