예제 #1
0
    private void ClickHeroBattle(IUIObject obj)
    {
        if (NrTSingleton <ContentsLimitManager> .Instance.IsHeroBattle())
        {
            NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            if (kMyCharInfo == null)
            {
                return;
            }
            if (kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_ENABLE_PLUNDER) == 0L)
            {
                PlunderAgreeDlg plunderAgreeDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PLUNDER_AGREE_DLG) as PlunderAgreeDlg;

                if (plunderAgreeDlg != null)
                {
                    plunderAgreeDlg.Show();
                    return;
                }
            }
        }
        if (!NrTSingleton <NkClientLogic> .Instance.ShowDownLoadUI(0, 0))
        {
            return;
        }
        if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.PLUNDERMAIN_DLG))
        {
            PlunderMainDlg plunderMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PLUNDERMAIN_DLG) as PlunderMainDlg;

            if (plunderMainDlg != null)
            {
                plunderMainDlg.Show();
            }
        }
        else
        {
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.PLUNDERMAIN_DLG);
        }
    }
예제 #2
0
    public override void ExcuteGameGuide()
    {
        if (NrTSingleton <ContentsLimitManager> .Instance.IsHeroBattle())
        {
            NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            if (kMyCharInfo == null)
            {
                return;
            }
            long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_ENABLE_PLUNDER);
            if (charSubData == 1L)
            {
                return;
            }
            PlunderAgreeDlg plunderAgreeDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PLUNDER_AGREE_DLG) as PlunderAgreeDlg;

            if (plunderAgreeDlg != null)
            {
                plunderAgreeDlg.Show();
            }
        }
        this.Init();
    }