|
@@ -32,6 +32,7 @@ namespace GFGGame
|
|
|
_ui.m_btnTask.onClick.Add(OnBtnTaskClick);
|
|
|
_ui.m_btnChapter.onClick.Add(OnBtnChapterClick);
|
|
|
_ui.m_btnLuckyBox.onClick.Add(OnBtnLuckyBoxClick);
|
|
|
+ _ui.m_btnShop.onClick.Add(OnBtnShopClick);
|
|
|
}
|
|
|
|
|
|
protected override void AddEventListener()
|
|
@@ -55,7 +56,8 @@ namespace GFGGame
|
|
|
_ui.m_c1.selectedPage = _activityId.ToString();
|
|
|
|
|
|
_activityCfg = ActivityOpenCfgArray.Instance.GetCfg(_activityId);
|
|
|
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hb_" + _activityCfg.res);
|
|
|
+ //_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hb_" + _activityCfg.res);
|
|
|
+ _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hb_ychm");
|
|
|
UpdateRedDot();
|
|
|
Timers.inst.Add(1, 0, UpdateTime);
|
|
|
}
|
|
@@ -89,6 +91,13 @@ namespace GFGGame
|
|
|
if (endTime < curTime) return;
|
|
|
ViewManager.Show<LuckyBoxActivityView>(_activityId, new object[] { typeof(ActivityThemeLuckyBoxView).FullName, this.viewData }, true);
|
|
|
}
|
|
|
+
|
|
|
+ private void OnBtnShopClick()
|
|
|
+ {
|
|
|
+ ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_GIFT_BAG, ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY }
|
|
|
+ , new object[] { typeof(ActivityThemeLuckyBoxView).FullName, viewData });
|
|
|
+ }
|
|
|
+
|
|
|
private void UpdateTime(object param = null)
|
|
|
{
|
|
|
long endTime = TimeUtil.DateTimeToTimestamp(_activityCfg.endTime);
|
|
@@ -103,7 +112,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateRedDot()
|
|
|
{
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnLuckyBox, RedDotDataManager.Instance.GetMeiRiTeHuiRed() || RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitLuckyBox) || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", -90, 70);
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnLuckyBox, RedDotDataManager.Instance.GetMeiRiTeHuiRed() || RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitLuckyBox) || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", -36, 39);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnTask, RedDotDataManager.Instance.GetActLuckyBoxTaskdRed());
|
|
|
}
|
|
|
}
|