public void OnApplicationStart() { BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; config = new BS_Utils.Utilities.Config("MVP"); Base64Sprites.ConvertToSprites(); }
public void OnApplicationStart() { SceneManager.activeSceneChanged += OnActiveSceneChanged; this.ApplyHarmonyPatches(); BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += MenuSceneLoadedFresh; }
public void OnApplicationStart() { Sprites.ConvertToSprites(); BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
public void OnApplicationStart() { //Create Harmony Instance harmony = new Harmony("com.kyle1413.BeatSaber.BS-Utils"); BSEvents.OnLoad(); SceneManager.activeSceneChanged += OnActiveSceneChanged; PluginManager.OnPluginsStateChanged += PluginManager_OnPluginsStateChanged; }
public void OnApplicationStart() { Logger.Info("Plugin starting..."); BSEvents.OnLoad(); SceneManager.sceneLoaded += OnSceneLoaded; SceneManager.sceneUnloaded += OnSceneUnloaded; Logger.Info("done"); }
public void OnApplicationStart() { BSMLSettings.instance.AddSettingsMenu("MVP", "MusicVideoPlayer.Views.settings.bsml", MVPSettings.instance); GameplaySetup.instance.AddTab("Video", "MusicVideoPlayer.Views.video-menu.bsml", VideoMenu.instance); BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; Base64Sprites.ConvertToSprites(); }
public void OnApplicationStart() { Instance = this; BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; Base64Sprites.ConvertToSprites(); Application.logMessageReceived += LogCallback; }
public void OnApplicationStart() { Instance = this; Base64Sprites.Init(); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
public void OnApplicationStart() { Instance = this; IsCustomJsonDataEnabled = PluginManager.EnabledPlugins.FirstOrDefault(p => p.Name == "CustomJSONData")?.Version >= new SemVer.Version("2.0.0"); Base64Sprites.Init(); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
public void OnApplicationStart() { // BSMLSettings.instance.AddSettingsMenu("Music Video Player", "MusicVideoPlayer.Views.settings.bsml", CVPSettings.instance); GameplaySetup.instance.AddTab("CustomVideo", "CustomVideoPlayer.Views.video-menu.bsml", VideoMenu.instance); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh; _harmonyInstance = new Harmony(HARMONY_ID); ApplyHarmonyPatches(); Base64Sprites.ConvertToSprites(); }
public void OnApplicationStart() { instance = this; PluginConfig.LoadConfig(); Sprites.ConvertToSprites(); PlaylistsCollection.ReloadPlaylists(); SongLoader.SongsLoadedEvent += SongLoader_SongsLoadedEvent; BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
public void OnApplicationStart() { // Disable stack traces for log and warning type log messages, as they just result in tons of useless spam Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); Application.SetStackTraceLogType(LogType.Warning, StackTraceLogType.None); _harmonyInstance = HarmonyInstance.Create("com.brian91292.beatsaber.customui"); _harmonyInstance.PatchAll(Assembly.GetExecutingAssembly()); BSEvents.OnLoad(); }
public void OnApplicationStart() { Instance = this; DatabasesLoaded = false; BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; BSEvents.menuSceneLoaded += OnMenuSceneLoaded; BSEvents.gameSceneLoaded += OnGameSceneLoaded; }
public void OnApplicationStart() { #if DEBUG if (Environment.CommandLine.Contains("fpfc")) { QualitySettings.vSyncCount = 2; Application.targetFrameRate = 60; } #endif instance = this; #if DEBUG DebugForm.OnLoad(); #endif BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += MenuSceneLoadedFresh; BSEvents.menuSceneLoaded += MenuSceneLoaded; BSEvents.gameSceneLoaded += GameSceneLoaded; if (Config.Load()) { log.Info("Loaded config!"); } else { Config.Create(); } try { PresetsCollection.ReloadPresets(); } catch (Exception e) { log.Warn("Unable to load presets! Exception: " + e); } Sprites.ConvertSprites(); ScrappedData.Instance.DownloadScrappedData(null); try { var harmony = HarmonyInstance.Create("com.andruzzzhka.BeatSaberMultiplayer"); harmony.PatchAll(Assembly.GetExecutingAssembly()); } catch (Exception e) { Plugin.log.Info("Unable to patch assembly! Exception: " + e); } }
public void OnApplicationStart() { Settings.Init(); SettingsUI.CreateMenu(); GameplaySetup.instance.AddTab("Video", "MusicVideoPlayer.UI.Views.video-menu.bsml", VideoMenu.instance); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh; // BSEvents.menuSceneLoaded += OnMenuSceneLoaded; // BSEvents.menuSceneActive += OnMenuSceneLoaded; // BSEvents.gameSceneLoaded += OnMenuSceneLoaded; Base64Sprites.ConvertToSprites(); }
public void OnApplicationStart() { SceneManager.sceneLoaded += SceneManager_sceneLoaded; SceneManager.activeSceneChanged += SceneManager_activeSceneChanged;; PluginConfig.LoadOrCreateConfig(); Sprites.ConvertToSprites(); PlaylistsCollection.ReloadPlaylists(); SongLoader.SongsLoadedEvent += SongLoader_SongsLoadedEvent; BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
public void OnStart() { // create userdata path if needed if (!Directory.Exists(DataPath)) { Directory.CreateDirectory(DataPath); } // load settings cfg = Settings.Load(); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += lateMenuSceneLoadedFresh; }
public void OnApplicationStart() { Instance = this; PluginConfig.LoadOrCreateConfig(); Base64Sprites.Init(); PlaylistsCollection.ReloadPlaylists(); SongCore.Loader.SongsLoadedEvent += SongCore_SongsLoadedEvent; BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh; }
internal Gamemode() { _gamemodeSettingsView = new GamemodeSettingsViewController(); _gamemodeSettingsView.IsEnabledChanged += OnGamemodeToggled; GameplaySetup.instance.AddTab( "Claws", GamemodeSettingsViewController.Resource, _gamemodeSettingsView ); BSEvents.OnLoad(); BSEvents.gameSceneActive += OnGameActivated; BSEvents.menuSceneActive += OnMenuActivated; }
public void OnStart() { // create userdata path if needed if (!Directory.Exists(DataPath)) { Directory.CreateDirectory(DataPath); } harmony = new Harmony("com.nate1280.BeatSaber.NoFailCheck"); harmony.PatchAll(System.Reflection.Assembly.GetExecutingAssembly()); // load settings cfg = Settings.Load(); BSEvents.OnLoad(); BSEvents.lateMenuSceneLoadedFresh += lateMenuSceneLoadedFresh; }
public void OnApplicationStart() { #if DEBUG if (Environment.CommandLine.Contains("fpfc")) { QualitySettings.vSyncCount = 1; } #endif if (File.Exists("MPLog.txt")) { File.Delete("MPLog.txt"); } instance = this; #if DEBUG DebugForm.OnLoad(); #endif BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += MenuSceneLoadedFresh; BSEvents.menuSceneLoaded += MenuSceneLoaded; BSEvents.gameSceneLoaded += GameSceneLoaded; if (Config.Load()) { Misc.Logger.Info("Loaded config!"); } else { Config.Create(); } try { PresetsCollection.ReloadPresets(); } catch (Exception e) { Misc.Logger.Warning("Unable to load presets! Exception: " + e); } Sprites.ConvertSprites(); ScrappedData.Instance.DownloadScrappedData(null); }
public void OnStart() { BSEvents.OnLoad(); Sprites.Init(); Gamemode.Init(); GetUserInfo.UpdateUserInfo(); HarmonyPatcher.Patch(); Executor.Init(); Client.Init(); Gameplay.Init(); Jukebox.Init(); ItemManager.Init(); ScoreManager.Init(); BSEvents.menuSceneLoadedFresh += BSEventsOnmenuSceneLoadedFresh; BSEvents.gameSceneActive += BSEventsOngameSceneActive; SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; log.Info("Beat Saber 99 started"); }
public void OnStart() { PersistentSingleton <InputManager> .TouchInstance(); PersistentSingleton <TrackedDeviceManager> .TouchInstance(); if (this.stageDressingUI == null) { this.stageDressingUI = new GameObject(nameof(StageDressingUI)).AddComponent <StageDressingUI>(); } PersistentSingleton <StageManager> .TouchInstance(); StageManager.instance.LoadConfiguration(); TrackedDeviceManager.instance.StageDressing = this; StageManager.instance.LoadPrefabs(); BSEvents.OnLoad(); BSEvents.menuSceneLoaded += this.MenuSceneLoaded; BSEvents.lateMenuSceneLoadedFresh += this.LateMenuSceneLoadedFresh; BSEvents.gameSceneLoaded += this.GameSceneLoaded; }
public void OnStart() { BSEvents.OnLoad(); BSEvents.menuSceneLoadedFresh += BSEvents_menuSceneLoadedFresh; SceneManager.activeSceneChanged += OnActiveSceneChanged; }
public void OnApplicationStart() { //Create Harmony Instance harmony = HarmonyInstance.Create("com.kyle1413.BeatSaber.BS-Utils"); BSEvents.OnLoad(); }
public void OnApplicationStart() { BSEvents.OnLoad(); }