public void onPlay() { MainWindow.Instance.Invoke((MethodInvoker) delegate { MainWindow.Instance.Hide(); var launchWindow = new LaunchWindow(); launchWindow.ShowDialog(); MainWindow.Instance.Show(); //Javascript.Run($"showPlayWindow();"); }); }
public static bool step1(int instanceID, int line) { var config = EditorUtility.InstanceIDToObject(instanceID) as LaunchWindowSettingsAsset; if (config != null) { LaunchWindow.OpenAsset(config); return(true); } return(false); }
/// <summary> /// Load all existing files to Editors. /// <para>Or open Launcher if there are none.</para> /// </summary> private void LoadExistFilesOrOpenLauncher() { if (existFiles.Count > 0) { // mark that we have been opned from args openedFromArgs = true; // open editor window for each file foreach (string file in existFiles) { DataManager.OpenArgFile(file); } } // if no existing files were provided, open Launcher else { Logger.Append(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, "Opening LaunchWindow..."); LaunchWindow launcher = new LaunchWindow(); launcher.Show(); } }
public static void ShowWindow() { LaunchWindow wnd = GetWindow <LaunchWindow>(); wnd.titleContent = new GUIContent("LaunchWindow"); }