|
@@ -48,14 +48,20 @@ namespace GFGGame
|
|
|
_cfgs = DailyLoginCfgArray.Instance.GetCfgsBytype((int)ConstBonusType.Item);
|
|
|
_cfg = DailyLoginCfgArray.Instance.GetCfgsBytype((int)ConstBonusType.Suit)[0];
|
|
|
UpdateView();
|
|
|
- _ui.m_comIcon.m_loaIcon.url = "ui://DailyWelfare/yzhd_dyt_5";
|
|
|
_ui.m_comIcon.m_loaIcon.data = _cfg;
|
|
|
GameGlobal.AutoSevenDayLoginView = false;
|
|
|
}
|
|
|
private void UpdateView()
|
|
|
{
|
|
|
_ui.m_list.numItems = _cfgs.Count;
|
|
|
-
|
|
|
+ if (ActivityDataManager.Instance.sevenDayLoginBonusStatusList[_cfg.id - 1] != ConstBonusStatus.GOT)
|
|
|
+ {
|
|
|
+ _ui.m_comIcon.m_loaIcon.url = "ui://DailyWelfare/yzhd_dyt_5";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ _ui.m_comIcon.m_loaIcon.url = "ui://DailyWelfare/yzhd_dyt_5_zz";
|
|
|
+ }
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_comIcon.target, ActivityDataManager.Instance.sevenDayLoginBonusStatusList[_cfg.id - 1] == ConstBonusStatus.CAN_GET);
|
|
|
}
|
|
|
protected override void OnHide()
|