|
@@ -158,9 +158,9 @@ namespace GFGGame
|
|
EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
EventAgent.AddEventListener(ConstMessage.RESET_DAILY_DATA, ResetDailyData);
|
|
EventAgent.AddEventListener(ConstMessage.RESET_DAILY_DATA, ResetDailyData);
|
|
EventAgent.AddEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
EventAgent.AddEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
|
+ EventAgent.AddEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
protected override void RemoveEventListener()
|
|
protected override void RemoveEventListener()
|
|
{
|
|
{
|
|
base.RemoveEventListener();
|
|
base.RemoveEventListener();
|
|
@@ -169,6 +169,7 @@ namespace GFGGame
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
EventAgent.RemoveEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
EventAgent.RemoveEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
@@ -194,7 +195,7 @@ namespace GFGGame
|
|
CheckProbabilityUp();
|
|
CheckProbabilityUp();
|
|
_valueBarController.OnShown();
|
|
_valueBarController.OnShown();
|
|
|
|
|
|
- Log.Debug("zyq"+ GameGlobal.isLogon);
|
|
|
|
|
|
+ Log.Debug("zyq" + GameGlobal.isLogon);
|
|
if (GameGlobal.isLogon)
|
|
if (GameGlobal.isLogon)
|
|
{
|
|
{
|
|
ET.Log.Debug("zyq" + GameGlobal.isLogon);
|
|
ET.Log.Debug("zyq" + GameGlobal.isLogon);
|
|
@@ -203,13 +204,16 @@ namespace GFGGame
|
|
GuideDataManager.currentGuideId <= 0)
|
|
GuideDataManager.currentGuideId <= 0)
|
|
{
|
|
{
|
|
ViewManager.Show<SevenDayLoginView>();
|
|
ViewManager.Show<SevenDayLoginView>();
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
else if (RedDotDataManager.Instance.DailySignRed())
|
|
else if (RedDotDataManager.Instance.DailySignRed())
|
|
{
|
|
{
|
|
ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
SetPos();
|
|
SetPos();
|
|
GetAdIds();
|
|
GetAdIds();
|
|
@@ -509,7 +513,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
|
|
|
- ViewManager.Show<FieldView>(null, new object[] {typeof(MainUIView).FullName, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<FieldView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnPoem()
|
|
private void OnClickBtnPoem()
|
|
@@ -780,7 +784,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- List<int> actListChargeIds = ActivityGlobalDataManager.Instance.GetActivityInfoIdsByType(ConstLimitTimeActivityType.ActLimitChargeId);
|
|
|
|
|
|
+ List<int> actListChargeIds = ActivityGlobalDataManager.Instance.GetActivityInfoIdsByType(ConstLimitTimeActivityType.ActLimitChargeId);
|
|
int actLimitChargeId = actListChargeIds.Count > 0 ? actListChargeIds[0] : 0;
|
|
int actLimitChargeId = actListChargeIds.Count > 0 ? actListChargeIds[0] : 0;
|
|
if (ActivityDataManager.Instance.lastActLimitChargeId != actLimitChargeId)
|
|
if (ActivityDataManager.Instance.lastActLimitChargeId != actLimitChargeId)
|
|
{
|
|
{
|
|
@@ -825,7 +829,7 @@ namespace GFGGame
|
|
if (_ui.m_btnActivityAfuGift.target.visible)
|
|
if (_ui.m_btnActivityAfuGift.target.visible)
|
|
{
|
|
{
|
|
var activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfoOneByType(ActivityType.AFZL);
|
|
var activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfoOneByType(ActivityType.AFZL);
|
|
- if(activityInfo == null)
|
|
|
|
|
|
+ if (activityInfo == null)
|
|
{
|
|
{
|
|
_ui.m_btnActivityAfuGift.target.visible = false;
|
|
_ui.m_btnActivityAfuGift.target.visible = false;
|
|
}
|
|
}
|
|
@@ -955,7 +959,7 @@ namespace GFGGame
|
|
jumpIndex = adCfg.jumpParamArr[0];
|
|
jumpIndex = adCfg.jumpParamArr[0];
|
|
}
|
|
}
|
|
|
|
|
|
- if(jumpIndex != 0)
|
|
|
|
|
|
+ if (jumpIndex != 0)
|
|
ViewManager.Show($"GFGGame.{adCfg.jumpId}", jumpIndex);
|
|
ViewManager.Show($"GFGGame.{adCfg.jumpId}", jumpIndex);
|
|
else
|
|
else
|
|
ViewManager.Show($"GFGGame.{adCfg.jumpId}", param);
|
|
ViewManager.Show($"GFGGame.{adCfg.jumpId}", param);
|
|
@@ -1020,13 +1024,13 @@ namespace GFGGame
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
RedDotController.Instance.SetComRedDot(_btnLeague, RedDotDataManager.Instance.GetLeagueRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnLeague, RedDotDataManager.Instance.GetLeagueRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnDailyWelfare.target, RedDotDataManager.Instance.GetDailyWelfareRed(), "", 9, -1);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnDailyWelfare.target, RedDotDataManager.Instance.GetDailyWelfareRed(), "", 9, -1);
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed()
|
|
|
|
- || RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitLuckyBox)
|
|
|
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed()
|
|
|
|
+ || RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitLuckyBox)
|
|
|| RedDotDataManager.Instance.GetActLuckyBoxTaskdRed() || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", -11, 5);
|
|
|| RedDotDataManager.Instance.GetActLuckyBoxTaskdRed() || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", -11, 5);
|
|
RedDotController.Instance.SetComRedDot(_btnBag, RedDotDataManager.Instance.GetMainBagGiftRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnBag, RedDotDataManager.Instance.GetMainBagGiftRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityDay7.target, RedDotDataManager.Instance.GetActivityDay7Red());
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityDay7.target, RedDotDataManager.Instance.GetActivityDay7Red());
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnWanShiLi.target, RedDotDataManager.Instance.GetActivityWanShiLiRed(), "", -25, -7);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnWanShiLi.target, RedDotDataManager.Instance.GetActivityWanShiLiRed(), "", -25, -7);
|
|
-
|
|
|
|
|
|
+
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnXiuFang.target, RedDotDataManager.Instance.GetClothingFosterRed() || RedDotDataManager.Instance.GetClothingSyntheticRed(), "", -10, 20);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnXiuFang.target, RedDotDataManager.Instance.GetClothingFosterRed() || RedDotDataManager.Instance.GetClothingSyntheticRed(), "", -10, 20);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnCiPai.target, RedDotDataManager.Instance.GetCardRed(), "", -10, 20);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnCiPai.target, RedDotDataManager.Instance.GetCardRed(), "", -10, 20);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnZhaiXing.target, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy) || RedDotDataManager.Instance.GetLuckyBoxFreeTimes());
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnZhaiXing.target, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy) || RedDotDataManager.Instance.GetLuckyBoxFreeTimes());
|
|
@@ -1036,7 +1040,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityAfuGift.target, ActivityAfuGiftDataManager.Instance.HaveCanGetReward(), "", -43, 2);
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityAfuGift.target, ActivityAfuGiftDataManager.Instance.HaveCanGetReward(), "", -43, 2);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
private void CheckProbabilityUp()
|
|
private void CheckProbabilityUp()
|
|
@@ -1164,5 +1168,24 @@ namespace GFGGame
|
|
UpdateHead();
|
|
UpdateHead();
|
|
UpdateBtnFirstRecharge();
|
|
UpdateBtnFirstRecharge();
|
|
}
|
|
}
|
|
|
|
+ private void SevenDayLoginShow()
|
|
|
|
+ {
|
|
|
|
+ //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
|
|
+ if (GameGlobal.isLogon)
|
|
|
|
+ {
|
|
|
|
+ if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
|
|
|
|
+ GuideDataManager.currentGuideId <= 0)
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<SevenDayLoginView>();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ else if (RedDotDataManager.Instance.DailySignRed())
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|