|
@@ -82,7 +82,10 @@ namespace GFGGame
|
|
|
EventAgent.AddEventListener(ConstMessage.LEAGUE_INFO_CHANGE, UpdateView);
|
|
|
EventAgent.AddEventListener(ConstMessage.LEAGUE_NUMBERIC_CHANGE, UpdateView);
|
|
|
EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.NOTICE_CHAT_MESSAGE, UpdateRedChatBtn);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.OPEN_CHAT_MESSAGE, UpdateRedChatBtn);
|
|
|
}
|
|
|
+
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
@@ -108,6 +111,8 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.LEAGUE_INFO_CHANGE, UpdateView);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.LEAGUE_NUMBERIC_CHANGE, UpdateView);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.NOTICE_CHAT_MESSAGE, UpdateRedChatBtn);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.OPEN_CHAT_MESSAGE, UpdateRedChatBtn);
|
|
|
}
|
|
|
|
|
|
private void OnBtnBackClick()
|
|
@@ -250,6 +255,11 @@ namespace GFGGame
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnParty.target, RedDotDataManager.Instance.GetLeagueTeaPartyRed(), "", -440, 60);
|
|
|
}
|
|
|
|
|
|
+ private void UpdateRedChatBtn()
|
|
|
+ {
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnChat, ChatDataManager.Instance.NewChatInfo, "", 10, -10);
|
|
|
+ }
|
|
|
+
|
|
|
private void UpdateEffect()
|
|
|
{
|
|
|
_ui.m_btnPray.m_effect.scale = new Vector2(0.8f, 0.8f);
|