Esempio n. 1
0
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        m_PageTitle = m_CanvasObj.GetComponentInChildren <PageTitle>();
        if (m_PageTitle != null)
        {
            m_PageTitle.Title = GameTextUtil.GetText("unit_shojititle");
            m_PageTitle.SetPositionAjustStatusBar(new Vector2(0, -152));
        }

        //ページ初期化処理
        if (m_UnitGrid == null)
        {
            //ユニットグリッド取得
            m_UnitGrid = m_CanvasObj.GetComponentInChildren <UnitGridComplex>();
            //サイズ設定
            m_UnitGrid.SetPositionAjustStatusBar(new Vector2(0, -25), new Vector2(-48, -295));

            m_UnitGrid.AttchUnitGrid <UnitGridView>(UnitGridView.Create());
        }

        updateUnitList();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.UNIT;
    }
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        if (m_FriendList == null)
        {
            m_FriendList = m_CanvasObj.GetComponentInChildren<FriendList>();
            m_FriendList.SetPositionAjustStatusBar(new Vector2(0, 26), new Vector2(-60, -422));
            m_FriendList.CheckLock = true;//お気に入りチェックON
            m_FriendList.IsViewReload = true; // 更新ボタン表示
        }
        if (m_PageTitle == null)
        {
            m_PageTitle = m_CanvasObj.GetComponentInChildren<PageTitle>();
            m_PageTitle.SetPositionAjustStatusBar(new Vector2(0, -152));
        }


        //---------------------------------------
        // フレンドポイント取得可能なクエストかどうか
        //---------------------------------------
        m_GetQuestFriendPointEnabel = MasterDataUtil.GetQuest2FriendPointEnabel(MainMenuParam.m_QuestSelectMissionID);

        setupFriend();

        //------------------------------------
        // エピソード名・ストーリー名の設定
        //------------------------------------
        m_PageTitle.Title = GameTextUtil.GetText("questfriend_title");

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.QUEST;
    }