| | |
| | | [SerializeField] GameObject friendTipsObj;
|
| | | [SerializeField] ChatSendComponent m_ChatSend;
|
| | |
|
| | | SocialModel socialModel { get { return ModelCenter.Instance.GetModel<SocialModel>(); } }
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | |
|
| | |
| | |
|
| | | 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);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void ClickXianYuanBtn()
|
| | | {
|
| | | socialModel.UpdateSelectTitle(SocialModel.SocialType.XianYuan);
|
| | | CloseChild();
|
| | | friendTipsObj.SetActive(true);
|
| | | functionOrder = xianyuanBtn.order;
|
| | |
| | |
|
| | | private void TeamChat()
|
| | | {
|
| | | socialModel.UpdateSelectTitle(SocialModel.SocialType.Team);
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<TeamChatWin>();
|
| | | functionOrder = m_TeamChat.order;
|
| | |
| | |
|
| | | private void FairyChat()
|
| | | {
|
| | | socialModel.UpdateSelectTitle(SocialModel.SocialType.Union);
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<FairyChatWin>();
|
| | | functionOrder = m_FairyChat.order;
|