public static void Modules() { if (CodeDocsSettings.IsProperlyConfigured() == false) { CodeDocsSettings.ShowConfiguration(); } else { CodeDocsModulesPopup.Init(); } }
public static void GenerateAndOpenDocs() { if (CodeDocsSettings.IsProperlyConfigured() == false) { CodeDocsSettings.ShowConfiguration(); return; } _shouldClosePopup = false; Process generateProcess = StartCommand(CodeDocsSettings.GenerateDocsExe, PlayerSettings.productName, CodeDocsSettings.SourcesPath); CodeDocsInfoPopup.Show(out _updateTextAction, out _closePopup); EditorApplication.update += Update; new Thread(() => { Log(LogType.Log, "thread started"); if (generateProcess == null) { Log(LogType.Error, "Could not start generate process"); _shouldClosePopup = true; return; } Log(LogType.Log, "waiting for thread to finish"); generateProcess.WaitForExit(); Log(LogType.Log, "process finished"); if (generateProcess.ExitCode == 0) { EditorApplication.delayCall += OpenDocs; } _shouldClosePopup = true; }).Start(); }
public static void OpenConfig() { CodeDocsSettings.ShowConfiguration(); }