Пример #1
0
    private void SetModel()
    {
        m_helpBufEvent = MainMenuUtil.checkHelpBufEvent();
        CheckSkillUpEvent();
        m_unitBufEvent = (MainMenuParam.m_BlendBuildEventSLV != 0);
        m_footer       = new MainMenuFooterModel();

        m_footer.OnDisappearingBegan += () =>
        {
            PlayAnimation(DisappearAnimationName);
        };

        m_footer.OnAppeared += () =>
        {
            m_isFooterAppeared = true;
            m_helpButton       = ButtonList[(int)FOOTER_MENU_TYPE.QUEST].GetComponentInChildren <MainMenuFooterHelpButton>();
            if (m_helpButton != null)
            {
                if (MainMenuManager.Instance != null &&
                    MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.QUEST)
                {
                    m_helpButton.setBufEvent(false);
                }
                else
                {
                    if (MainMenuParam.m_PartyAssignPrevPage == MAINMENU_SEQ.SEQ_QUEST_SELECT_PARTY)
                    {
                        m_helpButton.setBufEvent(false);
                    }
                    else
                    {
                        m_helpButton.setBufEvent(true);
                    }
                }
            }
            m_unitsButton = ButtonList[(int)FOOTER_MENU_TYPE.UNITS].GetComponentInChildren <MainMenuFooterUnitsButton>();
            if (m_unitsButton != null)
            {
                if (MainMenuManager.Instance != null &&
                    MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.UNIT)
                {
                    m_unitsButton.setBufEvent(false);
                }
                else
                {
                    m_unitsButton.setBufEvent(true);
                }
            }
            m_gachaButton = ButtonList[(int)FOOTER_MENU_TYPE.SCRATCH].GetComponentInChildren <MainMenuFooterGachaButton>();
            if (m_gachaButton != null)
            {
                bool bFlag = MasterDataUtil.CheckFirstTimeFree();
                m_gachaButton.SetFlag(bFlag);
            }
        };
    }
Пример #2
0
 private void UpdateBufEvent()
 {
     m_helpBufEvent = MainMenuUtil.checkHelpBufEvent();
     CheckSkillUpEvent();
     m_unitBufEvent = (MainMenuParam.m_BlendBuildEventSLV != 0);
     if (m_helpButton != null)
     {
         m_helpButton.IsBufEvent = m_helpBufEvent;
         if (MainMenuManager.Instance != null &&
             MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.QUEST)
         {
             m_helpButton.setBufEvent(false);
         }
         else
         {
             if (MainMenuParam.m_PartyAssignPrevPage == MAINMENU_SEQ.SEQ_QUEST_SELECT_PARTY)
             {
                 m_helpButton.setBufEvent(false);
             }
             else
             {
                 m_helpButton.setBufEvent(true);
             }
         }
     }
     if (m_unitsButton != null)
     {
         m_unitsButton.IsBufEvent = m_unitBufEvent;
         if (MainMenuManager.Instance != null &&
             MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.UNIT)
         {
             m_unitsButton.setBufEvent(false);
         }
         else
         {
             m_unitsButton.setBufEvent(true);
         }
     }
     if (m_gachaButton != null)
     {
         bool bFlag = MasterDataUtil.CheckFirstTimeFree();
         m_gachaButton.SetFlag(bFlag);
     }
 }