示例#1
0
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        //ページ初期化処理
        if (m_AreaSelect == null)
        {
            m_AreaSelect = m_CanvasObj.GetComponentInChildren <AreaSelect>();
            m_AreaSelect.SetPositionAjustStatusBar(new Vector2(0, -46.25f), new Vector2(0, -172.5f));
        }
        if (m_MenuBanner == null)
        {
            m_MenuBanner = m_CanvasObj.GetComponentInChildren <MenuBanner>();
            m_MenuBanner.SetPositionAjustStatusBar(new Vector2(-125, -217));
            m_MenuBanner.bannerSetup(true);
        }

        m_bReturnHome = false;

        m_ChallengeAreaCategory = null;
        List <MasterDataChallengeEvent> eventList = MasterDataUtil.GetActiveChallengeEvent();

        if (eventList != null &&
            eventList.Count > 0)
        {
            m_ChallengeAreaCategory = MasterDataUtil.GetChallengeAreaCategoryMaster(eventList[0].event_id);
        }

        SettingArea();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.QUEST;

        StartCoroutine(MainMenuWebViewShowChk.PopupWebViewStart(MainMenuWebViewShowChk.PopupWebViewType.Mission));
    }
示例#2
0
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        if (m_HomeMenu == null)
        {
            m_HomeMenu = m_CanvasObj.GetComponentInChildren <HomeMenu>();
            m_HomeMenu.SetPositionAjustStatusBar(new Vector2(0, -25), new Vector2(0, -215));
            m_HomeMenu.DidSelectStory     = changeQuestStory;
            m_HomeMenu.DidSelectMaster    = changeMaster;
            m_HomeMenu.DidSelectChallenge = changeChallengeSelect;

            m_HomeMenu.DidSelectGoodInfo  = openGoodInfo;
            m_HomeMenu.DidSelectBossInfo  = openBossInfo;
            m_HomeMenu.DidSelectUnitInfo  = openUnitInfo;
            m_HomeMenu.DidSelectScoreInfo = openScoreInfo;
            m_HomeMenu.DidSelectMission   = openMission;
            m_HomeMenu.DidSelectPresent   = openPresent;
        }
        m_HomeMenu.Initialize();
        m_HomeMenu.HeroImage      = m_HeroImage;
        m_HomeMenu.HeroImage_mask = m_HeroImage_mask;

        if (m_MenuBanner == null)
        {
            m_MenuBanner = m_CanvasObj.GetComponentInChildren <MenuBanner>();
            m_MenuBanner.SetPositionAjustStatusBar(new Vector2(-125, -218));
            m_MenuBanner.bannerSetup();
        }

        //イベント開催中フラグ
        bool bFlag = false;

        if (m_RecvData != null && m_RecvData.pickup != null)
        {
            PacketStructPickup _info = m_RecvData.pickup;
            if (_info.text != null)
            {
                for (int i = 0; i < _info.text.Length; i++)
                {
                    if (!ChkTiming(_info.text[i].timing_start, _info.text[i].timing_end))
                    {
                        continue;
                    }

                    if (_info.text[i].event_flag != 0)
                    {
                        bFlag = true;
                    }
                }
            }
        }
        m_HomeMenu.IsActiveEventFlag = bFlag;

        //スコアイベントチェック
        m_HomeMenu.IsViewScoreInfo = false;
        scoreEventList             = MasterDataUtil.GetActiveScoreEvent();
        if (scoreEventList.Count != 0)
        {
            m_HomeMenu.IsViewScoreInfo = true;
        }

        //成長ボスイベントチェック
        m_HomeMenu.IsViewChallenge = false;
        challengeEventList         = MasterDataUtil.GetActiveChallengeEvent();
        if (challengeEventList.Count != 0)
        {
            MasterDataAreaCategory areaCategory = MasterDataUtil.GetChallengeAreaCategoryMaster(challengeEventList[0].event_id);
            if (areaCategory != null)
            {
                m_HomeMenu.ChallengeButton.LoadIcon(areaCategory.fix_id);
                m_HomeMenu.IsViewChallenge = true;
            }
        }

        //
        updateFlag();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.HOME;

        StartCoroutine(MainMenuWebViewShowChk.PopupWebViewStart(MainMenuWebViewShowChk.PopupWebViewType.Mission));
    }