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

        m_IsRequestedApi = false;

        //--------------------------------
        //	オブジェクトの取得
        //--------------------------------
        m_PartySelectGroup = m_CanvasObj.GetComponentInChildren <PartySelectGroup>();
        m_PartySelectGroup.SetPositionAjustStatusBar(new Vector2(0, -132));
        m_PartySelectGroup.SetSizeParfect(new Vector2(0, 128));

        m_PartyParamPanel = m_CanvasObj.GetComponentInChildren <PartyParamPanel>();
        m_PartyParamPanel.SetPositionAjustStatusBar(new Vector2(0, -280));

        m_PartySelectButtonPanel = m_CanvasObj.GetComponentInChildren <PartySelectButtonPanel>();
        m_PartySelectButtonPanel.SetPositionAjustStatusBar(new Vector2(0, -714));

        // パーティ一覧の描画
        if (m_UnitPartyCurrent == DefaultUnitPartyCurrent)
        {
            m_UnitPartyCurrent = UserDataAdmin.Instance.m_StructPlayer.unit_party_current;
        }

        CreatePartyList();
        CreatePartyParam();
        m_PartyAssignLength = UserDataAdmin.Instance.m_StructPartyAssign.Length;

        // 下部ボタン
        m_PartySelectButtonPanel.IsActiveMemberSettingButton = true;
        m_PartySelectButtonPanel.MemberSettingButtonText     = GameTextUtil.GetText("party_button");
        m_PartySelectButtonPanel.MemberSettingAction         = OnSelectMovePartyAssign;
        m_PartySelectButtonPanel.SetUpButtons(false);

        SetUpAppearAnimation();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.UNIT;

        StartCoroutine(sohwArrow(() =>
        {
            MainMenuParam.m_PartySelectIsShowLinkUnit = MainMenuParam.m_PartySelectShowedLinkUnit;
            MainMenuParam.m_PartySelectShowedLinkUnit = false;
            m_PartyParamPanel.SetUpLinkUnit(MainMenuParam.m_PartySelectIsShowLinkUnit);
        }));
    }
Ejemplo n.º 2
0
 public void OnSelectLink()
 {
     m_PartyParamPanel.SetUpLinkUnit();
 }