|
@@ -40,11 +40,7 @@ namespace GFGGame
|
|
|
|
|
|
private GButton _btnActivityDay7;
|
|
|
|
|
|
- private EffectUI _effectUI1;
|
|
|
- private EffectUI _effectUI2;
|
|
|
- private EffectUI _effectUI3;
|
|
|
- private EffectUI _effectUI4;
|
|
|
- private EffectUI _effectUI5;
|
|
|
+ private List<EffectUI> _effectUIList = new List<EffectUI>();
|
|
|
|
|
|
|
|
|
private UI_ButtonModle1[] _btns;
|
|
@@ -57,17 +53,13 @@ namespace GFGGame
|
|
|
_valueBarController = null;
|
|
|
}
|
|
|
|
|
|
- EffectUIPool.Recycle(_effectUI1);
|
|
|
- _effectUI1 = null;
|
|
|
- EffectUIPool.Recycle(_effectUI2);
|
|
|
- _effectUI2 = null;
|
|
|
- EffectUIPool.Recycle(_effectUI3);
|
|
|
- _effectUI3 = null;
|
|
|
- EffectUIPool.Recycle(_effectUI4);
|
|
|
- _effectUI4 = null;
|
|
|
- EffectUIPool.Recycle(_effectUI5);
|
|
|
- _effectUI5 = null;
|
|
|
-
|
|
|
+ // Clear Effect
|
|
|
+ for (int i = 0; i < _effectUIList.Capacity; i++)
|
|
|
+ {
|
|
|
+ EffectUIPool.Recycle(_effectUIList[i]);
|
|
|
+ }
|
|
|
+ _effectUIList.Clear();
|
|
|
+
|
|
|
|
|
|
if (_sceneObject != null)
|
|
|
{
|
|
@@ -213,18 +205,19 @@ namespace GFGGame
|
|
|
_valueBarController.OnShown();
|
|
|
|
|
|
|
|
|
- long lastTime =
|
|
|
- GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
+ //long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
|
|
|
- if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
|
+ //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
|
+ if (GameGlobal.isLogon)
|
|
|
{
|
|
|
if (ActivityDataManager.Instance.sevenDayLoginBonusStatus == ConstBonusStatus.CAN_GET &&
|
|
|
GuideDataManager.currentGuideId <= 0)
|
|
|
{
|
|
|
ViewManager.Show<SevenDayLoginView>();
|
|
|
+ GameGlobal.isLogon = false;
|
|
|
}
|
|
|
-
|
|
|
- GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
+
|
|
|
+ //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
}
|
|
|
|
|
|
SetPos();
|
|
@@ -268,11 +261,11 @@ namespace GFGGame
|
|
|
|
|
|
private void AddEffect()
|
|
|
{
|
|
|
- _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder, "ui_zjm", "ZJM_szl_down_3");
|
|
|
- _effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder1, "ui_zjm", "ZJM_szl_top_1");
|
|
|
- _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_btnHaiZhiShi.m_holder, "ui_zjm", "ZJM_hzs_down_3");
|
|
|
- _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_btnHaiZhiShi.m_holder1, "ui_zjm", "ZJM_hzs_top_1");
|
|
|
- _effectUI5 = EffectUIPool.CreateEffectUI(_ui.m_BottomEffectHolder, "ui_zjm", "ZJM_DiBan");
|
|
|
+ _effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder, "ui_zjm", "ZJM_szl_down_3"));
|
|
|
+ _effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder1, "ui_zjm", "ZJM_szl_top_1"));
|
|
|
+ _effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnHaiZhiShi.m_holder, "ui_zjm", "ZJM_hzs_down_3"));
|
|
|
+ _effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnHaiZhiShi.m_holder1, "ui_zjm", "ZJM_hzs_top_1"));
|
|
|
+ _effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_BottomEffectHolder, "ui_zjm", "ZJM_DiBan"));
|
|
|
}
|
|
|
|
|
|
private void SetPos()
|
|
@@ -412,7 +405,7 @@ namespace GFGGame
|
|
|
// {
|
|
|
// _ui.m_btnMain.m_holder1.visible = false;
|
|
|
// this.Hide();
|
|
|
- ViewManager.Show<StoryChapterListView>( null,
|
|
|
+ ViewManager.Show<StoryChapterListView>(null,
|
|
|
new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
isOpen = false;
|
|
|
;
|
|
@@ -464,7 +457,7 @@ namespace GFGGame
|
|
|
// Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
// {
|
|
|
_ui.m_btnXiuFang.m_holder1.visible = false;
|
|
|
- ViewManager.Show<XiuFangView>( null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
+ ViewManager.Show<XiuFangView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
isOpen = false;
|
|
|
|
|
|
|
|
@@ -857,7 +850,7 @@ namespace GFGGame
|
|
|
if (_ui.m_btnFirstRecharge.target.visible)
|
|
|
{
|
|
|
bool canget = ActivityDataManager.Instance.firstChargeBonusStatus == ConstBonusStatus.CAN_GET;
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnFirstRecharge.target, canget);
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnFirstRecharge.target, canget, "", -10, 10);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1000,7 +993,7 @@ namespace GFGGame
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_headBar.m_comHead, RedDotDataManager.Instance.GetHeadRed() || RedDotDataManager.Instance.GetHeadBorderRed(), "", -26, 42);
|
|
|
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
|
- RedDotController.Instance.SetComRedDot(_btnLeague, RedDotDataManager.Instance.GetLeagueRed());
|
|
|
+ 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_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed() || RedDotDataManager.Instance.GetActLuckyBoxRewardRed() || RedDotDataManager.Instance.GetActLuckyBoxTaskdRed() || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", 9, -1);
|
|
|
RedDotController.Instance.SetComRedDot(_btnBag, RedDotDataManager.Instance.GetMainBagGiftRed(), "", -8);
|