Пример #1
0
 public void onPlay()
 {
     MainWindow.Instance.Invoke((MethodInvoker) delegate
     {
         MainWindow.Instance.Hide();
         var launchWindow = new LaunchWindow();
         launchWindow.ShowDialog();
         MainWindow.Instance.Show();
         //Javascript.Run($"showPlayWindow();");
     });
 }
Пример #2
0
    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);
    }
Пример #3
0
        /// <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");
    }