Ejemplo n.º 1
0
 public override void ClosePanel(bool animation = true)
 {
     if (this.isGoingBattle)
     {
         base.SetForceReturnValue(0);
         if (CMD_QuestSelect.instance != null)
         {
             CMD_QuestSelect.instance.SetForceReturnValue(0);
         }
         FarmCameraControlForCMD.On();
         base.ClosePanel(false);
         if (CMD_QuestSelect.instance != null)
         {
             CMD_QuestSelect.instance.ClosePanel(false);
         }
     }
     else
     {
         SoundMng.Instance().PlayGameBGM("bgm_201");
         base.SetForceReturnValue(6);
         CMD_QuestTOP.AreaData = null;
         FarmCameraControlForCMD.On();
         base.ClosePanel(animation);
     }
     if (this.csSelectPanelA_StageL != null)
     {
         this.csSelectPanelA_StageL.FadeOutAllListParts(null, false);
         this.csSelectPanelA_StageL.SetHideScrollBarAllWays(true);
     }
     if (this.csSelectPanelS_DungeonR != null)
     {
         this.csSelectPanelS_DungeonR.FadeOutAllListParts(null, false);
         this.csSelectPanelS_DungeonR.SetHideScrollBarAllWays(true);
     }
 }
Ejemplo n.º 2
0
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_QuestSelect");
        List <QuestData.WorldAreaData> worldAreaM_Normal = ClassSingleton <QuestData> .Instance.GetWorldAreaM_Normal();

        this.worldAreaMList = new List <QuestData.WorldAreaData>();
        for (int i = 0; i < worldAreaM_Normal.Count; i++)
        {
            if (worldAreaM_Normal[i].isActive)
            {
                List <QuestData.WorldStageData> worldStageData_ByAreaID = ClassSingleton <QuestData> .Instance.GetWorldStageData_ByAreaID(worldAreaM_Normal[i].data.worldAreaId);

                DkLog.W(string.Format("{0} : {1} : {2}", worldAreaM_Normal[i].data.name, worldAreaM_Normal[i].isActive, worldStageData_ByAreaID.Count), false);
                if (worldStageData_ByAreaID.Count > 0)
                {
                    this.worldAreaMList.Add(worldAreaM_Normal[i]);
                }
            }
        }
        bool flag = this.IsColosseumOpen() && DataMng.Instance().IsReleaseColosseum;

        if (flag)
        {
            GameWebAPI.RespDataMA_GetWorldAreaM            respDataMA_WorldAreaM = MasterDataMng.Instance().RespDataMA_WorldAreaM;
            GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM data = respDataMA_WorldAreaM.worldAreaM.Where((GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM x) => x.worldAreaId == "5").FirstOrDefault <GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM>();
            QuestData.WorldAreaData worldAreaData = new QuestData.WorldAreaData();
            worldAreaData.data     = data;
            worldAreaData.isActive = true;
            this.worldAreaMList.Add(worldAreaData);
        }
        base.PartsTitle.SetTitle(StringMaster.GetString("QuestTopTitle"));
        this.InitUI();
        base.Show(f, sizeX, sizeY, aT);
        base.SetTutorialAnyTime("anytime_second_tutorial_quest");
        RestrictionInput.EndLoad();
    }
Ejemplo n.º 3
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     base.HideDLG();
     if (CMD_QuestTOP.AreaData == null)
     {
         CMD_QuestTOP.AreaData = ClassSingleton <QuestData> .Instance.GetWorldAreaM_NormalByAreaId(ClassSingleton <QuestTOPAccessor> .Instance.nextStage.worldAreaId);
     }
     if (CMD_QuestTOP.AreaData == null || !CMD_QuestTOP.AreaData.isActive)
     {
         AppCoroutine.Start(this.CloseImmidiate_OpenQuestSelect(1), false);
         return;
     }
     if (CMD_QuestTOP.AreaData.data.type == "3" || CMD_QuestTOP.AreaData.data.type == "4")
     {
         RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
         if (CMD_QuestTOP.AreaData.data.type == "3")
         {
             this.partsQuestPoint = this.goPartsPointROOT.GetComponent <PartsQuestPoint>();
         }
         else if (CMD_QuestTOP.AreaData.data.type == "4")
         {
             this.partsQuestPoint = this.goPartsPointWithoutRankingROOT.GetComponent <PartsQuestPoint>();
         }
         APIRequestTask apirequestTask = new APIRequestTask();
         apirequestTask.Add(ClassSingleton <QuestData> .Instance.RequestPointQuestInfo(CMD_QuestTOP.AreaData.data.worldAreaId, delegate(GameWebAPI.RespDataWD_PointQuestInfo resp)
         {
             this.pointInfo = resp;
             this.partsQuestPoint.PointInfo = this.pointInfo;
             this.partsQuestPoint.AreaData  = CMD_QuestTOP.AreaData;
             this.partsQuestPoint.ShowData();
         }, false));
         base.StartCoroutine(apirequestTask.Run(delegate
         {
             this.IntDLG(f, sizeX, sizeY, aT);
             RestrictionInput.EndLoad();
             if (CMD_QuestTOP.AreaData.data.type == "3")
             {
                 this.goPartsPointROOT.SetActive(true);
                 this.goPartsPointWithoutRankingROOT.SetActive(false);
             }
             else if (CMD_QuestTOP.AreaData.data.type == "4")
             {
                 this.goPartsPointROOT.SetActive(false);
                 this.goPartsPointWithoutRankingROOT.SetActive(true);
             }
         }, delegate(Exception nop)
         {
             RestrictionInput.EndLoad();
             this.ClosePanel(false);
         }, null));
     }
     else
     {
         this.goPartsPointROOT.SetActive(false);
         this.goPartsPointWithoutRankingROOT.SetActive(false);
         this.goScheduleBannerROOT.SetActive(false);
         this.goPartsDetailsROOT.SetActive(false);
         if (CMD_QuestTOP.AreaData.data.type == "6")
         {
             this.goPartsDetailsROOT.SetActive(true);
             PartsQuestDetails component    = this.goPartsDetailsROOT.GetComponent <PartsQuestDetails>();
             string            worldEventId = this.GetWorldEventId();
             component.worldEventId = worldEventId;
         }
         if (CMD_QuestTOP.AreaData.data.worldAreaId == "3")
         {
             IEnumerable <GameWebAPI.RespDataMA_BannerM.BannerM> source = DataMng.Instance().RespData_BannerMaster.bannerM.Where((GameWebAPI.RespDataMA_BannerM.BannerM _banner) => _banner.linkCategoryType == "9" && _banner.actionType == "menu" && ServerDateTime.Now >= DateTime.Parse(_banner.startTime) && GUIBannerParts.GetRestTimeSeconds(DateTime.Parse(_banner.endTime)) > 0);
             this.isScheduleBannerActive = (source.Count <GameWebAPI.RespDataMA_BannerM.BannerM>() >= 1);
             this.goScheduleBannerROOT.SetActive(this.isScheduleBannerActive);
             if (this.isScheduleBannerActive)
             {
                 IEnumerator routine = this.BuildBanner(source.ElementAt(0));
                 base.StartCoroutine(routine);
             }
         }
         this.IntDLG(f, sizeX, sizeY, aT);
     }
 }
 public override void SetData()
 {
     this.areaData = CMD_QuestSelect.instance.GetData(base.IDX);
 }