|
@@ -93,6 +93,7 @@ namespace GFGGame
|
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateListItemData);
|
|
|
EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_FREE_TIME_CHANGED, UpdateFreeInfo);
|
|
|
EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_ACTIVITY_REWARD, UpdateBtnReward);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.ACTIVITY_LUCKY_BOX, UpdateBtnReward);
|
|
|
}
|
|
|
protected override void OnShown()
|
|
|
{
|
|
@@ -303,14 +304,17 @@ namespace GFGGame
|
|
|
UI_ComBox1.ProxyEnd();
|
|
|
UpdateListItemData();
|
|
|
UpdateFreeInfo();
|
|
|
- UpdateBtnReward();
|
|
|
}
|
|
|
|
|
|
private void UpdateBtnReward()
|
|
|
{
|
|
|
- GObject obj = _ui.m_listBg.GetChildAt(1);
|
|
|
- UI_ComBox1 comBox = UI_ComBox1.Proxy(obj);
|
|
|
- RedDotController.Instance.SetComRedDot(comBox.m_btnReward, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy));
|
|
|
+ if (_curIndex == 1) {
|
|
|
+ GObject obj = _ui.m_listBg.GetChildAt(_curIndex);
|
|
|
+ UI_ComBox1 comBox = UI_ComBox1.Proxy(obj);
|
|
|
+ RedDotController.Instance.SetComRedDot(comBox.m_btnReward, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy));
|
|
|
+
|
|
|
+ comBox.m_txtCount.SetVar("value", ActivityDataManager.Instance.lastTsyDrawCount.ToString()).FlushVars();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void OnClikcBtnReward()
|
|
@@ -370,6 +374,7 @@ namespace GFGGame
|
|
|
comBox.m_btnGiftBag.visible = true;
|
|
|
}
|
|
|
}
|
|
|
+ UpdateBtnReward();
|
|
|
}
|
|
|
|
|
|
//限时礼包按钮点击执行方法
|
|
@@ -533,7 +538,6 @@ namespace GFGGame
|
|
|
{
|
|
|
ViewManager.Show<LuckyBoxStarView>(null, new object[] { typeof(LuckyBoxView).FullName, boxId });
|
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZAI_XING, 2);
|
|
|
- UpdateBtnReward();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -562,6 +566,7 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateListItemData);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_FREE_TIME_CHANGED, UpdateFreeInfo);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_ACTIVITY_REWARD, UpdateBtnReward);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.ACTIVITY_LUCKY_BOX, UpdateBtnReward);
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnBack()
|