private void ClickClose(IUIObject obj) { AdventureDlg adventureDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ADVENTURE_DLG) as AdventureDlg; if (adventureDlg != null) { adventureDlg.DrawAdventure(); } this.Close(); }
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; } }
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)); } }