/// --------------------------------------------- /// Behavior Designer /// Copyright (c) Opsive. All Rights Reserved. /// https://www.opsive.com /// --------------------------------------------- namespace Opsive.BehaviorDesigner.Editor.Managers { using Opsive.Shared.Editor.Managers; using UnityEditor; using UnityEngine; /// /// The MainManagerWindow is an editor window which contains all of the sub managers. This window draws the high level menu options and draws /// the selected sub manager. /// [InitializeOnLoad] public class BehaviorMainWindow : MainManagerWindow { protected override string AssetName => AssetInfo.Name; protected override string AssetVersion => AssetInfo.Version; protected override string UpdateCheckURL => string.Format("https://opsive.com/asset/UpdateCheck.php?asset=BehaviorDesigner&type={0}&version={1}&unityversion={2}&devplatform={3}&targetplatform={4}", AssetInfo.Name.Replace(" ", ""), AssetInfo.Version, Application.unityVersion, Application.platform, EditorUserBuildSettings.activeBuildTarget); protected override string LatestVersionKey => "Opsive.BehaviorDesigner.Editor.LatestVersion"; protected override string LastUpdateCheckKey => "Opsive.BehaviorDesigner.Editor.LastUpdateCheck"; protected override string ManagerNamespace => "Opsive.BehaviorDesigner.Editor"; /// /// Initializes the Main Manager. /// [MenuItem("Tools/Opsive/Behavior Designer/Welcome", false, 30)] public static MainManagerWindow ShowWindow() { var window = EditorWindow.GetWindow(false, "Behavior Window"); window.minSize = new Vector2(680, 670); return window; } /// /// Initializes the Main Manager and shows the Samples Manager. /// [MenuItem("Tools/Opsive/Behavior Designer/Samples", false, 31)] public static void ShowSamplesManagerWindow() { var window = ShowWindow(); window.Open(typeof(SamplesManager)); } /// /// Initializes the Main Manager and shows the Integrations Manager. /// [MenuItem("Tools/Opsive/Behavior Designer/Integrations", false, 32)] public static void ShowIntegrationsManagerWindow() { var window = ShowWindow(); window.Open(typeof(IntegrationsManager)); } /// /// Initializes the Main Manager and shows the Add-Ons Manager. /// [MenuItem("Tools/Opsive/Behavior Designer/Add-Ons", false, 33)] public static void ShowAddOnsManagerWindow() { var window = ShowWindow(); window.Open(typeof(AddOnsManager)); } } }