private void ClickClose(IUIObject obj)
    {
        AdventureDlg adventureDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ADVENTURE_DLG) as AdventureDlg;

        if (adventureDlg != null)
        {
            adventureDlg.DrawAdventure();
        }
        this.Close();
    }
示例#2
0
    private void ShowNewAdventure()
    {
        AdventureDlg.m_PageSetting = true;
        this.Close();
        AdventureDlg adventureDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ADVENTURE_DLG) as AdventureDlg;

        if (adventureDlg != null)
        {
            adventureDlg.DrawAdventure();
            AdventureDlg.m_PageSetting = false;
        }
    }
示例#3
0
    private void Click_Adventure(IUIObject Obj)
    {
        if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.ADVENTURE_DLG))
        {
            AdventureDlg adventureDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ADVENTURE_DLG) as AdventureDlg;

            if (adventureDlg != null)
            {
                adventureDlg.DrawAdventure();
            }
            TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ADVENTURE", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        }
        else
        {
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.ADVENTURE_DLG);

            TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ADVENTURE", "CLOSE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        }
    }