|
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|
using ET;
|
|
using ET;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using Assets.Game.HotUpdate.Data;
|
|
using Assets.Game.HotUpdate.Data;
|
|
|
|
+using System.Collections;
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
@@ -34,13 +35,10 @@ namespace GFGGame
|
|
private GButton _btnStudio;
|
|
private GButton _btnStudio;
|
|
private GButton _btnField;
|
|
private GButton _btnField;
|
|
private GButton _btnBag;
|
|
private GButton _btnBag;
|
|
-
|
|
|
|
private GButton _btnActivityDay7;
|
|
private GButton _btnActivityDay7;
|
|
-
|
|
|
|
private List<EffectUI> _effectUIList = new List<EffectUI>();
|
|
private List<EffectUI> _effectUIList = new List<EffectUI>();
|
|
-
|
|
|
|
-
|
|
|
|
private UI_ButtonModle1[] _btns;
|
|
private UI_ButtonModle1[] _btns;
|
|
|
|
+ private bool firstIn;
|
|
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
@@ -98,15 +96,9 @@ namespace GFGGame
|
|
_btnTianGong = _ui.m_list.GetChild("btnTianGong").asButton;
|
|
_btnTianGong = _ui.m_list.GetChild("btnTianGong").asButton;
|
|
_btnTuJian = _ui.m_list.GetChild("btnTuJian").asButton;
|
|
_btnTuJian = _ui.m_list.GetChild("btnTuJian").asButton;
|
|
_btnJInShu = _ui.m_list.GetChild("btnJInShu").asButton;
|
|
_btnJInShu = _ui.m_list.GetChild("btnJInShu").asButton;
|
|
- // _btnStudio = _ui.m_list.GetChild("btnStudio").asButton;
|
|
|
|
- // _btnField = _ui.m_list.GetChild("btnField").asButton;
|
|
|
|
_btnBag = _ui.m_list.GetChild("btnBag").asButton;
|
|
_btnBag = _ui.m_list.GetChild("btnBag").asButton;
|
|
|
|
|
|
_btnActivityDay7 = _ui.m_btnActivityDay7.target;
|
|
_btnActivityDay7 = _ui.m_btnActivityDay7.target;
|
|
-
|
|
|
|
- // _btnGongGao.visible = false;
|
|
|
|
- // _btnHaoYou.visible = false;
|
|
|
|
- // _btnRenWu.visible = false;
|
|
|
|
_btnPengYouQuan.visible = false;
|
|
_btnPengYouQuan.visible = false;
|
|
_btnJInShu.visible = false;
|
|
_btnJInShu.visible = false;
|
|
_btnTianGong.visible = false;
|
|
_btnTianGong.visible = false;
|
|
@@ -115,7 +107,6 @@ namespace GFGGame
|
|
_ui.m_btnMain.target.onClick.Add(OnClickBtnMain);
|
|
_ui.m_btnMain.target.onClick.Add(OnClickBtnMain);
|
|
_ui.m_btnHuanZhuang.target.onClick.Add(OnClickBtnHuanZhuang);
|
|
_ui.m_btnHuanZhuang.target.onClick.Add(OnClickBtnHuanZhuang);
|
|
_ui.m_btnZhaiXing.target.onClick.Add(OnClickBtnZhaiXing);
|
|
_ui.m_btnZhaiXing.target.onClick.Add(OnClickBtnZhaiXing);
|
|
- // _ui.m_btnDailyLogin.target.onClick.Add(OnClickBtnDailyLogin);
|
|
|
|
_ui.m_btnXiuFang.target.onClick.Add(OnClickBtnXiuFang);
|
|
_ui.m_btnXiuFang.target.onClick.Add(OnClickBtnXiuFang);
|
|
_ui.m_btnCiPai.target.onClick.Add(OnClickBtnCiPai);
|
|
_ui.m_btnCiPai.target.onClick.Add(OnClickBtnCiPai);
|
|
_ui.m_btnStudio.target.onClick.Add(OnClickBtnStudio);
|
|
_ui.m_btnStudio.target.onClick.Add(OnClickBtnStudio);
|
|
@@ -137,8 +128,6 @@ namespace GFGGame
|
|
_ui.m_btnActivityAfuGift.target.onClick.Add(OnClickBtnAfuGift);
|
|
_ui.m_btnActivityAfuGift.target.onClick.Add(OnClickBtnAfuGift);
|
|
_btnActivityDay7.onClick.Add(OnClickBtnDay7);
|
|
_btnActivityDay7.onClick.Add(OnClickBtnDay7);
|
|
_ui.m_btnFirstRecharge.target.onClick.Add(OnClickBtnFirstRecharge);
|
|
_ui.m_btnFirstRecharge.target.onClick.Add(OnClickBtnFirstRecharge);
|
|
- // _btnStudio.onClick.Add(OnClickBtnStudio);
|
|
|
|
- // _btnField.onClick.Add(OnClickBtnField);
|
|
|
|
_btnBag.onClick.Add(OnClickBtnBag);
|
|
_btnBag.onClick.Add(OnClickBtnBag);
|
|
_ui.m_btnGiftBag1.target.onClick.Add(OnClickBtnGiftBag2);
|
|
_ui.m_btnGiftBag1.target.onClick.Add(OnClickBtnGiftBag2);
|
|
_ui.m_btnGiftBag2.target.onClick.Add(OnClickBtnGiftBag1);
|
|
_ui.m_btnGiftBag2.target.onClick.Add(OnClickBtnGiftBag1);
|
|
@@ -151,20 +140,13 @@ namespace GFGGame
|
|
_ui.m_comListAd.m_listAd.scrollPane.onScrollEnd.Add(OnListAdScrollEnd);
|
|
_ui.m_comListAd.m_listAd.scrollPane.onScrollEnd.Add(OnListAdScrollEnd);
|
|
_ui.m_comListAd.m_listAd.scrollPane.decelerationRate = 0.8f;
|
|
_ui.m_comListAd.m_listAd.scrollPane.decelerationRate = 0.8f;
|
|
|
|
|
|
- // swipeGesture = new SwipeGesture(_ui.target);
|
|
|
|
- // swipeGesture.onAction.Add(OnSwipe);
|
|
|
|
- // swipeGesture.onBegin.Add(OnSwipeBegin);
|
|
|
|
- // swipeGesture.onEnd.Add(OnSwipeEnd);
|
|
|
|
- // swipeGesture.actionDistance = swipeDistance;
|
|
|
|
_ui.m_list.ResizeToFit();
|
|
_ui.m_list.ResizeToFit();
|
|
_ui.m_btnChange.target.onClick.Add(OnBtnChangClick);
|
|
_ui.m_btnChange.target.onClick.Add(OnBtnChangClick);
|
|
_ui.m_btnChange.m_c1.selectedIndex = 1;
|
|
_ui.m_btnChange.m_c1.selectedIndex = 1;
|
|
_ui.m_btnChange.target.selected = true;
|
|
_ui.m_btnChange.target.selected = true;
|
|
|
|
|
|
- GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.UP_CARD_STAR);
|
|
|
|
- // StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + cfg.id, 0).Coroutine();
|
|
|
|
- // StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + cfg.id, 1).Coroutine();
|
|
|
|
AddEffect();
|
|
AddEffect();
|
|
|
|
+ firstIn = true;
|
|
}
|
|
}
|
|
|
|
|
|
protected override void AddEventListener()
|
|
protected override void AddEventListener()
|
|
@@ -179,14 +161,15 @@ namespace GFGGame
|
|
EventAgent.AddEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
EventAgent.AddEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- private void ResetDailyData()
|
|
|
|
|
|
+ protected override void RemoveEventListener()
|
|
{
|
|
{
|
|
- //ViewManager.Show<MainUIView>();
|
|
|
|
- CheckFunOpen();
|
|
|
|
- UpdateRedDot();
|
|
|
|
- UpdateHead();
|
|
|
|
- UpdateBtnFirstRecharge();
|
|
|
|
|
|
+ base.RemoveEventListener();
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
@@ -212,6 +195,22 @@ namespace GFGGame
|
|
CheckProbabilityUp();
|
|
CheckProbabilityUp();
|
|
_valueBarController.OnShown();
|
|
_valueBarController.OnShown();
|
|
|
|
|
|
|
|
+ Log.Debug("zyq" + GameGlobal.isLogon);
|
|
|
|
+ if (GameGlobal.isLogon)
|
|
|
|
+ {
|
|
|
|
+ ET.Log.Debug("zyq" + GameGlobal.isLogon);
|
|
|
|
+ ET.Log.Debug("zyq" + ActivityDataManager.Instance.sevenDayLoginBonusStatusList.Count + ":::" + GuideDataManager.currentGuideId);
|
|
|
|
+ if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
|
|
|
|
+ GuideDataManager.currentGuideId <= 0)
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<SevenDayLoginView>();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ else if (RedDotDataManager.Instance.DailySignRed())
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
//long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
|
|
|
|
|
|
|
@@ -230,7 +229,16 @@ namespace GFGGame
|
|
Timers.inst.AddUpdate(Update);
|
|
Timers.inst.AddUpdate(Update);
|
|
Update(null);
|
|
Update(null);
|
|
|
|
|
|
- _ui.m_openViewAction.Play(MainUIAnimFinished);
|
|
|
|
|
|
+ // 刚进游戏不播放主界面入场动画
|
|
|
|
+ if (firstIn)
|
|
|
|
+ {
|
|
|
|
+ firstIn = false;
|
|
|
|
+ MainUIAnimFinished();
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _ui.m_openViewAction.Play(MainUIAnimFinished);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
@@ -238,8 +246,6 @@ namespace GFGGame
|
|
base.OnHide();
|
|
base.OnHide();
|
|
if (_sceneObject != null)
|
|
if (_sceneObject != null)
|
|
{
|
|
{
|
|
- //MyDressUpHelper.dressUpObj.TakeOffAll();
|
|
|
|
- //GameObject.Destroy(_sceneObject);
|
|
|
|
PrefabManager.Instance.Restore(_sceneObject);
|
|
PrefabManager.Instance.Restore(_sceneObject);
|
|
_sceneObject = null;
|
|
_sceneObject = null;
|
|
}
|
|
}
|
|
@@ -249,17 +255,6 @@ namespace GFGGame
|
|
Timers.inst.Remove(UpdateAdListTime);
|
|
Timers.inst.Remove(UpdateAdListTime);
|
|
}
|
|
}
|
|
|
|
|
|
- protected override void RemoveEventListener()
|
|
|
|
- {
|
|
|
|
- base.RemoveEventListener();
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
private void AddEffect()
|
|
private void AddEffect()
|
|
{
|
|
{
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder, "ui_zjm", "ZJM_szl_down_3"));
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder, "ui_zjm", "ZJM_szl_down_3"));
|
|
@@ -382,8 +377,6 @@ namespace GFGGame
|
|
|
|
|
|
GTween.To(_ui.m_list.height, height, 0.4f).SetTarget(_ui.m_list)
|
|
GTween.To(_ui.m_list.height, height, 0.4f).SetTarget(_ui.m_list)
|
|
.OnUpdate((GTweener t) => { _ui.m_list.height = t.value.x; }).SetEase(EaseType.QuintInOut);
|
|
.OnUpdate((GTweener t) => { _ui.m_list.height = t.value.x; }).SetEase(EaseType.QuintInOut);
|
|
- // _ui.m_list.ResizeToFit();
|
|
|
|
- // _ui.m_btnChange.m_c1.selectedIndex = 1;
|
|
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -391,8 +384,6 @@ namespace GFGGame
|
|
|
|
|
|
GTween.To(_ui.m_list.height, oneItemHeight, 0.4f).SetTarget(_ui.m_list)
|
|
GTween.To(_ui.m_list.height, oneItemHeight, 0.4f).SetTarget(_ui.m_list)
|
|
.OnUpdate((GTweener t) => { _ui.m_list.height = t.value.x; }).SetEase(EaseType.QuintInOut);
|
|
.OnUpdate((GTweener t) => { _ui.m_list.height = t.value.x; }).SetEase(EaseType.QuintInOut);
|
|
- // _ui.m_list.height = 0;
|
|
|
|
- // _ui.m_btnChange.m_c1.selectedIndex = 0;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -522,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()
|
|
@@ -612,9 +603,6 @@ namespace GFGGame
|
|
private void OnClickBtnRenWu()
|
|
private void OnClickBtnRenWu()
|
|
{
|
|
{
|
|
ViewManager.Show<TaskView>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
ViewManager.Show<TaskView>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
- // ViewManager.Show<ActivityDay7View>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
|
- // LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_REN_WU, 1);
|
|
|
|
- // ViewManager.Show<DailyTaskView>();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnAfuGift()
|
|
private void OnClickBtnAfuGift()
|
|
@@ -772,7 +760,6 @@ namespace GFGGame
|
|
|
|
|
|
int actLuckyBoxId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
int actLuckyBoxId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
_ui.m_btnActivityLuckyBox.target.visible = actLuckyBoxId > 0;
|
|
_ui.m_btnActivityLuckyBox.target.visible = actLuckyBoxId > 0;
|
|
- //_ui.m_btnActivityLuckyBox.target.visible = false;
|
|
|
|
if (actLuckyBoxId > 0)
|
|
if (actLuckyBoxId > 0)
|
|
{
|
|
{
|
|
if (actLuckyBoxId != ActivityDataManager.Instance.lastActLuckyBoxId)
|
|
if (actLuckyBoxId != ActivityDataManager.Instance.lastActLuckyBoxId)
|
|
@@ -797,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)
|
|
{
|
|
{
|
|
@@ -842,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;
|
|
}
|
|
}
|
|
@@ -972,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);
|
|
@@ -998,13 +985,8 @@ namespace GFGGame
|
|
_ui.m_btnTravel.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(TravelView).Name, false);
|
|
_ui.m_btnTravel.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(TravelView).Name, false);
|
|
_ui.m_btnArena.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ArenaView).Name, false);
|
|
_ui.m_btnArena.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ArenaView).Name, false);
|
|
_ui.m_btnActivityLuckyBox.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox) > 0;
|
|
_ui.m_btnActivityLuckyBox.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox) > 0;
|
|
-
|
|
|
|
- // _ui.m_btnDailyLogin.target.visible = !(!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(SevenDayLoginView).Name, false)
|
|
|
|
- // || (ActivityDataManager.Instance.sevenDayLoginLoginId >= 7 && ActivityDataManager.Instance.sevenDayLoginBonusStatus == ConstBonusStatus.GOT));
|
|
|
|
-
|
|
|
|
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;
|
|
- // int actLimitChargeId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitChargeId);
|
|
|
|
_ui.m_btnDailyWelfare.target.visible = actLimitChargeId > 0 ||
|
|
_ui.m_btnDailyWelfare.target.visible = actLimitChargeId > 0 ||
|
|
FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DailyWelfareView).Name, false) && (
|
|
FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DailyWelfareView).Name, false) && (
|
|
FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DailySignView).Name, false) ||
|
|
FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DailySignView).Name, false) ||
|
|
@@ -1031,8 +1013,6 @@ namespace GFGGame
|
|
RedDotController.Instance.SetComRedDot(_btnGongGao, RedDotDataManager.Instance.GetNoticeRed(), "", -9, 12);
|
|
RedDotController.Instance.SetComRedDot(_btnGongGao, RedDotDataManager.Instance.GetNoticeRed(), "", -9, 12);
|
|
|
|
|
|
RedDotController.Instance.SetComRedDot(_btnRenWu, RedDotDataManager.Instance.GetTaskRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnRenWu, RedDotDataManager.Instance.GetTaskRed(), "", -8);
|
|
- // RedDotController.Instance.SetComRedDot(_ui.m_btnDailyLogin.target,
|
|
|
|
- // RedDotDataManager.Instance.GetDailyLoginRed());
|
|
|
|
RedDotController.Instance.SetComRedDot(_btnYouJian, RedDotDataManager.Instance.GetMailRed(), "", -9, 12);
|
|
RedDotController.Instance.SetComRedDot(_btnYouJian, RedDotDataManager.Instance.GetMailRed(), "", -9, 12);
|
|
RedDotController.Instance.SetComRedDot(_btnTuJian, RedDotDataManager.Instance.GetFieldGuideRed() || RedDotDataManager.Instance.GetTravelGuideRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnTuJian, RedDotDataManager.Instance.GetFieldGuideRed() || RedDotDataManager.Instance.GetTravelGuideRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnHaoYou, RedDotDataManager.Instance.GetFriendRed(), "", -8);
|
|
RedDotController.Instance.SetComRedDot(_btnHaoYou, RedDotDataManager.Instance.GetFriendRed(), "", -8);
|
|
@@ -1044,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());
|
|
@@ -1060,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()
|
|
@@ -1176,13 +1156,19 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
private void ChangeAfuActivityState()
|
|
private void ChangeAfuActivityState()
|
|
{
|
|
{
|
|
_ui.m_btnActivityAfuGift.target.visible = ActivityAfuGiftDataManager.Instance.IsOpen;
|
|
_ui.m_btnActivityAfuGift.target.visible = ActivityAfuGiftDataManager.Instance.IsOpen;
|
|
}
|
|
}
|
|
|
|
|
|
- private void SevenDayLoginShow()
|
|
|
|
|
|
+ private void ResetDailyData()
|
|
|
|
+ {
|
|
|
|
+ CheckFunOpen();
|
|
|
|
+ UpdateRedDot();
|
|
|
|
+ UpdateHead();
|
|
|
|
+ UpdateBtnFirstRecharge();
|
|
|
|
+ }
|
|
|
|
+ private void SevenDayLoginShow()
|
|
{
|
|
{
|
|
//if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
//if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
if (GameGlobal.isLogon)
|
|
if (GameGlobal.isLogon)
|