|
@@ -55,6 +55,8 @@ namespace GFGGame
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
|
|
|
|
+ EventAgent.AddEventListener(ConstMessage.STORE_BROCADE_WEAV_RECEIVE, UpdateStoreMonthRedDot);
|
|
|
|
+
|
|
}
|
|
}
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
@@ -96,7 +98,9 @@ namespace GFGGame
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.STORE_BROCADE_WEAV_RECEIVE, UpdateStoreMonthRedDot);
|
|
}
|
|
}
|
|
|
|
+
|
|
private void OnClickBtnBack()
|
|
private void OnClickBtnBack()
|
|
{
|
|
{
|
|
ViewManager.Hide(_curViewName);
|
|
ViewManager.Hide(_curViewName);
|
|
@@ -198,8 +202,8 @@ namespace GFGGame
|
|
}
|
|
}
|
|
_curSubTabIndex = index;
|
|
_curSubTabIndex = index;
|
|
_curViewName = "GFGGame." + viewName;
|
|
_curViewName = "GFGGame." + viewName;
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
private void UpdateRedDot()
|
|
private void UpdateRedDot()
|
|
{
|
|
{
|
|
RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpRewardRed());
|
|
RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpRewardRed());
|