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

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 public void OnApplicationStart()
 {
     Logger.Info("Plugin starting...");
     BSEvents.OnLoad();
     SceneManager.sceneLoaded   += OnSceneLoaded;
     SceneManager.sceneUnloaded += OnSceneUnloaded;
     Logger.Info("done");
 }
Ejemplo n.º 6
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();
 }
Ejemplo n.º 7
0
 public void OnApplicationStart()
 {
     Instance = this;
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
     Base64Sprites.ConvertToSprites();
     Application.logMessageReceived += LogCallback;
 }
Ejemplo n.º 8
0
        public void OnApplicationStart()
        {
            Instance = this;

            Base64Sprites.Init();

            BSEvents.OnLoad();
            BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 10
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();
        }
Ejemplo n.º 11
0
        public void OnApplicationStart()
        {
            instance = this;
            PluginConfig.LoadConfig();
            Sprites.ConvertToSprites();
            PlaylistsCollection.ReloadPlaylists();
            SongLoader.SongsLoadedEvent += SongLoader_SongsLoadedEvent;

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 12
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();
        }
Ejemplo n.º 13
0
        public void OnApplicationStart()
        {
            Instance        = this;
            DatabasesLoaded = false;

            BSEvents.OnLoad();

            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
            BSEvents.menuSceneLoaded      += OnMenuSceneLoaded;
            BSEvents.gameSceneLoaded      += OnGameSceneLoaded;
        }
Ejemplo n.º 14
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);
            }
        }
Ejemplo n.º 15
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();
 }
Ejemplo n.º 16
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;
        }
Ejemplo n.º 17
0
        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;
        }
Ejemplo n.º 18
0
        public void OnApplicationStart()
        {
            Instance = this;

            PluginConfig.LoadOrCreateConfig();

            Base64Sprites.Init();

            PlaylistsCollection.ReloadPlaylists();
            SongCore.Loader.SongsLoadedEvent += SongCore_SongsLoadedEvent;

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 24
0
 public void OnStart()
 {
     BSEvents.OnLoad();
     BSEvents.menuSceneLoadedFresh   += BSEvents_menuSceneLoadedFresh;
     SceneManager.activeSceneChanged += OnActiveSceneChanged;
 }
Ejemplo n.º 25
0
 public void OnApplicationStart()
 {
     //Create Harmony Instance
     harmony = HarmonyInstance.Create("com.kyle1413.BeatSaber.BS-Utils");
     BSEvents.OnLoad();
 }
Ejemplo n.º 26
0
 public void OnApplicationStart()
 {
     BSEvents.OnLoad();
 }