public void OnEnable() { _harmonyInstanceCore.PatchAll(Assembly.GetExecutingAssembly()); SiraUtilInstalled = IPA.Loader.PluginManager.EnabledPlugins.Any(x => x.Id == "SiraUtil"); GameplaySetup.instance.AddTab("Chroma", "Chroma.Settings.modifiers.bsml", ChromaSettingsUI.instance); ChromaUtils.SetSongCoreCapability(REQUIREMENTNAME, ChromaConfig.Instance !.CustomColorEventsEnabled); SceneManager.activeSceneChanged += ChromaController.OnActiveSceneChanged; // Legacy support ChromaUtils.SetSongCoreCapability("Chroma Lighting Events"); AnimationHelper.SubscribeColorEvents(); EnvironmentEnhancementManager.SubscribeTrackManagerCreated(); }
public void OnEnable() { _harmonyInstanceCore.PatchAll(Assembly.GetExecutingAssembly()); GameplaySetup.instance.AddTab("Chroma", "Chroma.Settings.modifiers.bsml", ChromaSettingsUI.instance); ChromaUtils.SetSongCoreCapability(REQUIREMENTNAME, ChromaConfig.Instance.CustomColorEventsEnabled); SceneManager.activeSceneChanged += ChromaController.OnActiveSceneChanged; // Legacy support ChromaUtils.SetSongCoreCapability("Chroma Lighting Events"); if (ChromaUtils.IsNoodleExtensionsInstalled()) { AnimationHelper.SubscribeColorEvents(); EnvironmentEnhancementManager.SubscribeTrackManagerCreated(); NoodleExtensionsInstalled = true; } else { NoodleExtensionsInstalled = false; } }