public static void ShowSolMilityDlg() { if (NkInputManager.GetKeyUp(KeyCode.Space)) { Scene.Type curScene = Scene.CurScene; if (curScene == Scene.Type.EMPTY || curScene == Scene.Type.SELECTCHAR || curScene == Scene.Type.CUTSCENE) { return; } SolMilitaryGroupDlg solMilitaryGroupDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYGROUP_DLG) as SolMilitaryGroupDlg; if (solMilitaryGroupDlg == null || !solMilitaryGroupDlg.Visible) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.SOLMILITARYGROUP_DLG); } else { NrTSingleton <FormsManager> .Instance.ClearShowHideForms(); } SolMilitarySelectDlg solMilitarySelectDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYSELECT_DLG) as SolMilitarySelectDlg; if (solMilitarySelectDlg != null) { solMilitarySelectDlg.CloseByParent(82); } } }
private void OnClickHeroInfo(IUIObject obj) { if (obj == null) { return; } NrTSingleton <FormsManager> .Instance.ShowHide(G_ID.SOLMILITARYGROUP_DLG); SolMilitarySelectDlg solMilitarySelectDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYSELECT_DLG) as SolMilitarySelectDlg; if (solMilitarySelectDlg != null) { solMilitarySelectDlg.CloseByParent(82); } }
protected virtual void Click_HeroInfo(IUIObject Obj) { NrTSingleton <FormsManager> .Instance.ShowHide(G_ID.SOLMILITARYGROUP_DLG); if (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYGROUP_DLG).Visible) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MERCENARY-INFORMATION", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } else { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MERCENARY-INFORMATION", "CLOSE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } SolMilitarySelectDlg solMilitarySelectDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYSELECT_DLG) as SolMilitarySelectDlg; if (solMilitarySelectDlg != null) { solMilitarySelectDlg.CloseByParent(82); } NrTSingleton <FiveRocksEventManager> .Instance.Placement("solinfodlg_open"); }