|
@@ -649,8 +649,8 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_btnActivityDay7.target.visible = ActivityDay7DataManager.Instance.CheckOpen();
|
|
|
_ui.m_btnWanShiLi.target.visible = ActivityWanShiLiDataManager.Instance.CheckOpen();
|
|
|
- _ui.m_btnTea.target.visible = ActivityTeaDataManager.Instance.CheckOpen();
|
|
|
- _ui.m_btnActivityZCJB.target.visible = ActivityTeaDataManager.Instance.CheckOpenOne(17);
|
|
|
+ _ui.m_btnTea.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(12) == 0 ? false : true;
|
|
|
+ _ui.m_btnActivityZCJB.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(17) == 0 ? false: true;
|
|
|
}
|
|
|
|
|
|
private void UpdateTime()
|
|
@@ -947,7 +947,7 @@ namespace GFGGame
|
|
|
if (_ui.m_btnTea.target.visible)
|
|
|
{
|
|
|
if (redPointUpdateFrame == 19)
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnTea.target, ActivityTeaDataManager.Instance.GetRewardRed() || ActivityTeaDataManager.Instance.CheckHRDRed(), "", -24, -3);
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnTea.target, ActivityTeaDataManager.Instance.GetRewardRed() || ActivityTeaDataManager.Instance.CheckHRDRed() || ActivityTeaDataManager.Instance.GetActivitySyntheticRed(), "", -24, -3);
|
|
|
}
|
|
|
// 招财进宝活动
|
|
|
if (_ui.m_btnActivityZCJB.target.visible)
|
|
@@ -1108,24 +1108,24 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- //月卡弹窗
|
|
|
- if (GameGlobal.AutoMonthlyCardView)
|
|
|
- {
|
|
|
- GameGlobal.AutoMonthlyCardView = false;
|
|
|
- if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
|
|
|
- {
|
|
|
- long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
|
|
|
- long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
|
|
|
- if (endTime1 < TimeHelper.ServerNow())
|
|
|
- {
|
|
|
- if (endTime2 < TimeHelper.ServerNow())
|
|
|
- {
|
|
|
- ViewManager.Show<MonthlyCardTipsView>();
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //月卡弹窗 暂时屏蔽该两个弹窗
|
|
|
+ //if (GameGlobal.AutoMonthlyCardView)
|
|
|
+ //{
|
|
|
+ // GameGlobal.AutoMonthlyCardView = false;
|
|
|
+ // if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
|
|
|
+ // {
|
|
|
+ // long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
|
|
|
+ // long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
|
|
|
+ // if (endTime1 < TimeHelper.ServerNow())
|
|
|
+ // {
|
|
|
+ // if (endTime2 < TimeHelper.ServerNow())
|
|
|
+ // {
|
|
|
+ // ViewManager.Show<MonthlyCardTipsView>();
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
//活动公告弹窗
|
|
|
if (GameGlobal.AutoAcitivtyTipsLoginView)
|
|
|
{
|
|
@@ -1136,22 +1136,22 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if (GameGlobal.AutoSpecialOfferGiftBoxView)
|
|
|
- {
|
|
|
- //List<int> shopListId = new List<int>() { 40012, 40013 };
|
|
|
- //if (ShopDataManager.Instance.GetShopIdCanBuyInShop(ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY, shopListId))
|
|
|
- //{
|
|
|
- // ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_GIFT_BAG, ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY });
|
|
|
- // return;
|
|
|
- //}
|
|
|
-
|
|
|
- if (LimitedTimeGiftBoxDataManager.Instance.SpecialOfferGiftBoxCanBuy())
|
|
|
- {
|
|
|
- ViewManager.Show<SpecialOfferGiftBoxView>();
|
|
|
- return;
|
|
|
- }
|
|
|
+ //if (GameGlobal.AutoSpecialOfferGiftBoxView)
|
|
|
+ //{
|
|
|
+ // //List<int> shopListId = new List<int>() { 40012, 40013 };
|
|
|
+ // //if (ShopDataManager.Instance.GetShopIdCanBuyInShop(ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY, shopListId))
|
|
|
+ // //{
|
|
|
+ // // ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_GIFT_BAG, ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY });
|
|
|
+ // // return;
|
|
|
+ // //}
|
|
|
+
|
|
|
+ // if (LimitedTimeGiftBoxDataManager.Instance.SpecialOfferGiftBoxCanBuy())
|
|
|
+ // {
|
|
|
+ // ViewManager.Show<SpecialOfferGiftBoxView>();
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
- }
|
|
|
+ //}
|
|
|
if (FieldDataManager.Instance.waitToShowFieldFightEndView)
|
|
|
{
|
|
|
ViewManager.Show<FieldFightEndView>();
|