|
@@ -214,8 +214,11 @@ namespace GFGGame
|
|
|
//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()))
|
|
|
|
|
+ ET.Log.Debug("zyq"+ GameGlobal.isLogon);
|
|
|
if (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() &&
|
|
if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
|
|
|
GuideDataManager.currentGuideId <= 0)
|
|
GuideDataManager.currentGuideId <= 0)
|
|
|
{
|
|
{
|
|
@@ -419,22 +422,24 @@ namespace GFGGame
|
|
|
// {
|
|
// {
|
|
|
// _ui.m_btnMain.m_holder1.visible = false;
|
|
// _ui.m_btnMain.m_holder1.visible = false;
|
|
|
// this.Hide();
|
|
// this.Hide();
|
|
|
- ViewManager.Show<StoryChapterListView>(null,
|
|
|
|
|
- new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
|
|
- isOpen = false;
|
|
|
|
|
- ;
|
|
|
|
|
|
|
+ //ViewManager.Show<StoryChapterListView>(null,
|
|
|
|
|
+ // new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
|
|
+ //isOpen = false;
|
|
|
|
|
+ //;
|
|
|
List<StoryChapterCfg> _chapterCfgs = StoryChapterCfgArray.Instance.GetCfgsBysubType(0);
|
|
List<StoryChapterCfg> _chapterCfgs = StoryChapterCfgArray.Instance.GetCfgsBysubType(0);
|
|
|
for (int i = 0; i < _chapterCfgs.Count; i++)
|
|
for (int i = 0; i < _chapterCfgs.Count; i++)
|
|
|
{
|
|
{
|
|
|
StoryChapterCfg chapterCfg = _chapterCfgs[i];
|
|
StoryChapterCfg chapterCfg = _chapterCfgs[i];
|
|
|
if (i == _chapterCfgs.Count - 1)
|
|
if (i == _chapterCfgs.Count - 1)
|
|
|
{
|
|
{
|
|
|
- ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id, 0 }, new object[] { typeof(StoryChapterListView).FullName, new object[] { 0 } });
|
|
|
|
|
|
|
+ ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id, 0 });
|
|
|
|
|
+ isOpen = false;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
else if (!MainStoryDataManager.CheckChapterUnlock(chapterCfg.id))
|
|
else if (!MainStoryDataManager.CheckChapterUnlock(chapterCfg.id))
|
|
|
{
|
|
{
|
|
|
- ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id - 1, 0 }, new object[] { typeof(StoryChapterListView).FullName, new object[] { 0 } });
|
|
|
|
|
|
|
+ ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id - 1, 0 });
|
|
|
|
|
+ isOpen = false;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|