示例#1
0
 public void OnApplicationStart()
 {
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
     config = new BS_Utils.Utilities.Config("MVP");
     Base64Sprites.ConvertToSprites();
 }
示例#2
0
 public void OnApplicationStart()
 {
     SceneManager.activeSceneChanged += OnActiveSceneChanged;
     this.ApplyHarmonyPatches();
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh += MenuSceneLoadedFresh;
 }
示例#3
0
        public void OnApplicationStart()
        {
            Sprites.ConvertToSprites();

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
示例#4
0
 public void OnApplicationStart()
 {
     //Create Harmony Instance
     harmony = new Harmony("com.kyle1413.BeatSaber.BS-Utils");
     BSEvents.OnLoad();
     SceneManager.activeSceneChanged     += OnActiveSceneChanged;
     PluginManager.OnPluginsStateChanged += PluginManager_OnPluginsStateChanged;
 }
示例#5
0
 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();
 }
示例#6
0
 public void OnApplicationStart()
 {
     Instance = this;
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
     Base64Sprites.ConvertToSprites();
     Application.logMessageReceived += LogCallback;
 }
 public void OnApplicationStart()
 {
     Logger.Info("Plugin starting...");
     BSEvents.OnLoad();
     SceneManager.sceneLoaded   += OnSceneLoaded;
     SceneManager.sceneUnloaded += OnSceneUnloaded;
     Logger.Info("done");
 }
示例#8
0
        public void OnApplicationStart()
        {
            Instance = this;

            Base64Sprites.Init();

            BSEvents.OnLoad();
            BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
示例#9
0
        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;
        }
示例#10
0
        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();
        }
示例#11
0
        public void OnApplicationStart()
        {
            Instance        = this;
            DatabasesLoaded = false;

            BSEvents.OnLoad();

            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
            BSEvents.menuSceneLoaded      += OnMenuSceneLoaded;
            BSEvents.gameSceneLoaded      += OnGameSceneLoaded;
        }
示例#12
0
        public void OnApplicationStart()
        {
            instance = this;
            PluginConfig.LoadConfig();
            Sprites.ConvertToSprites();
            PlaylistsCollection.ReloadPlaylists();
            SongLoader.SongsLoadedEvent += SongLoader_SongsLoadedEvent;

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
示例#13
0
        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();
        }
示例#14
0
 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();
 }
示例#15
0
        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;
        }
示例#16
0
        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);
            }
        }
示例#17
0
        public void OnApplicationStart()
        {
            Instance = this;

            PluginConfig.LoadOrCreateConfig();

            Base64Sprites.Init();

            PlaylistsCollection.ReloadPlaylists();
            SongCore.Loader.SongsLoadedEvent += SongCore_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;
        }
示例#19
0
        internal Gamemode()
        {
            _gamemodeSettingsView = new GamemodeSettingsViewController();
            _gamemodeSettingsView.IsEnabledChanged += OnGamemodeToggled;

            GameplaySetup.instance.AddTab(
                "Claws",
                GamemodeSettingsViewController.Resource,
                _gamemodeSettingsView
                );

            BSEvents.OnLoad();
            BSEvents.gameSceneActive += OnGameActivated;
            BSEvents.menuSceneActive += OnMenuActivated;
        }
示例#20
0
        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;
        }
示例#21
0
        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);
        }
示例#22
0
        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");
        }
示例#23
0
        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;
        }
示例#24
0
 private static void __instance_didFinishEvent(MultiplayerLevelScenesTransitionSetupDataSO levelScenesTransitionSetupDataSO, MultiplayerResultsData resultsData)
 {
     Utilities.Logger.log.Debug("Triggering Multiplayer LevelFinishEvent.");
     Plugin.TriggerMultiplayerLevelDidFinish(levelScenesTransitionSetupDataSO, resultsData.localPlayerResultData.levelCompletionResults, resultsData.otherPlayersData);
     BSEvents.TriggerMultiplayerLevelDidFinish(levelScenesTransitionSetupDataSO, resultsData.localPlayerResultData.levelCompletionResults, resultsData.otherPlayersData);
 }
示例#25
0
 public void OnApplicationStart()
 {
     BSEvents.OnLoad();
 }
示例#26
0
 private static void __instance_didFinishEvent(TutorialScenesTransitionSetupDataSO missionLevelScenesTransitionSetupDataSO, TutorialScenesTransitionSetupDataSO.TutorialEndStateType endState)
 {
     Plugin.TriggerTutorialFinishEvent(missionLevelScenesTransitionSetupDataSO, endState);
     BSEvents.TriggerTutorialFinishEvent(missionLevelScenesTransitionSetupDataSO, endState);
 }
示例#27
0
 public void OnApplicationStart()
 {
     //Create Harmony Instance
     harmony = HarmonyInstance.Create("com.kyle1413.BeatSaber.BS-Utils");
     BSEvents.OnLoad();
 }
示例#28
0
 private static void __instance_didFinishEvent(StandardLevelScenesTransitionSetupDataSO levelScenesTransitionSetupDataSO, LevelCompletionResults levelCompletionResults)
 {
     Utilities.Logger.log.Debug("Triggering LevelFinishEvent.");
     Plugin.TriggerLevelFinishEvent(levelScenesTransitionSetupDataSO, levelCompletionResults);
     BSEvents.TriggerLevelFinishEvent(levelScenesTransitionSetupDataSO, levelCompletionResults);
 }
示例#29
0
 public void OnStart()
 {
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh   += BSEvents_menuSceneLoadedFresh;
     SceneManager.activeSceneChanged += OnActiveSceneChanged;
 }
示例#30
0
 private static void __instance_didFinishEvent(MissionLevelScenesTransitionSetupDataSO missionLevelScenesTransitionSetupDataSO, MissionCompletionResults missionCompletionResults)
 {
     Plugin.TriggerMissionFinishEvent(missionLevelScenesTransitionSetupDataSO, missionCompletionResults);
     BSEvents.TriggerMissionFinishEvent(missionLevelScenesTransitionSetupDataSO, missionCompletionResults);
 }