Ejemplo n.º 1
0
        public void OnStart()
        {
            if (Instance != null)
            {
                return;
            }
            Instance = this;

            // create playlists folder if needed
            if (!Directory.Exists(DataPath))
            {
                Directory.CreateDirectory(DataPath);
            }

            Dispatcher.Initialize();

            // create our internal webclient
            WebClient = new WebClient();

            // create udp listener
            UdpListener = new UdpListener();

            SongBrowserPluginPresent = IPA.Loader.PluginManager.GetPlugin("Song Browser") != null;

            // setup handle for fresh menu scene changes
            BS_Utils.Utilities.BSEvents.OnLoad();
            BS_Utils.Utilities.BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;

            // keep track of active scene
            BS_Utils.Utilities.BSEvents.menuSceneActive += () => { IsAtMainMenu = true; };
            BS_Utils.Utilities.BSEvents.gameSceneActive += () => { IsAtMainMenu = false; };

            // init sprites
            Base64Sprites.Init();
        }
Ejemplo n.º 2
0
        public void OnStart()
        {
            if (Instance != null)
            {
                return;
            }
            Instance = this;

            Dispatcher.Initialize();

            // create our internal webclient
            WebClient = new WebClient();

            SongBrowserPluginPresent = IPA.Loader.PluginManager.GetPlugin("Song Browser") != null;

            // setup handle for fresh menu scene changes
            BS_Utils.Utilities.BSEvents.OnLoad();
            BS_Utils.Utilities.BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;

            // keep track of active scene
            BS_Utils.Utilities.BSEvents.menuSceneActive += () => { IsAtMainMenu = true; };
            BS_Utils.Utilities.BSEvents.gameSceneActive += () => { IsAtMainMenu = false; };

            // init sprites
            Base64Sprites.Init();
        }
Ejemplo n.º 3
0
        public void OnApplicationStart()
        {
            SceneManager.sceneLoaded        += SceneManager_sceneLoaded;
            SceneManager.activeSceneChanged += SceneManager_activeSceneChanged;

            Base64Sprites.Init();
        }
Ejemplo n.º 4
0
        public void OnApplicationStart()
        {
            Instance = this;

            Base64Sprites.Init();

            BSEvents.OnLoad();
            BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 5
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.º 6
0
        public void OnStart()
        {
            if (!Directory.Exists(DataPath))
            {
                Directory.CreateDirectory(DataPath);
            }

            SongBrowserPluginPresent           = PluginManager.GetPlugin("Song Browser") != null;
            BSEvents.lateMenuSceneLoadedFresh += this.BSEvents_lateMenuSceneLoadedFresh;
            // init sprites
            Base64Sprites.Init();
        }
Ejemplo n.º 7
0
        public void OnApplicationStart()
        {
            Instance = this;

            PluginConfig.LoadOrCreateConfig();

            Base64Sprites.Init();

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

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 8
0
        public void OnApplicationStart()
        {
            SceneManager.sceneLoaded        += SceneManager_sceneLoaded;
            SceneManager.activeSceneChanged += SceneManager_activeSceneChanged;

            PluginConfig.LoadOrCreateConfig();

            Base64Sprites.Init();

            PlaylistsCollection.ReloadPlaylists();
            SongLoader.SongsLoadedEvent += SongLoader_SongsLoadedEvent;

            BSEvents.OnLoad();
            BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
        }
Ejemplo n.º 9
0
        public void OnApplicationStart()
        {
            if (Instance != null)
            {
                return;
            }
            Instance = this;

            // setup handle for fresh menu scene changes
            CustomUI.Utilities.BSEvents.OnLoad();
            CustomUI.Utilities.BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;

            // keep track of active scene
            CustomUI.Utilities.BSEvents.menuSceneActive += () => { IsAtMainMenu = true; };
            CustomUI.Utilities.BSEvents.gameSceneActive += () => { IsAtMainMenu = false; };

            // init sprites
            Base64Sprites.Init();
        }
Ejemplo n.º 10
0
        public void OnStart()
        {
            if (Instance != null)
            {
                return;
            }
            Instance = this;

            // create SRM UserDataFolder folder if needed, or rename old streamcore folder
            if (!Directory.Exists(DataPath))
            {
                if (Directory.Exists(OldDataPath))
                {
                    Directory.Move(OldDataPath, DataPath);
                }
                else
                {
                    Directory.CreateDirectory(DataPath);
                }
            }

            // initialize config
            RequestBotConfig = new RequestBotConfig();

            Dispatcher.Initialize();

            // create our internal webclient
            WebClient = new WebClient();

            // create udp listener
            UdpListener = new UdpListener();

            SongBrowserPluginPresent = IPA.Loader.PluginManager.GetPlugin("Song Browser") != null;
            ChatCorePluginPresent    = IPA.Loader.PluginManager.GetPlugin("ChatCore") != null;

            // setup handle for fresh menu scene changes
            BS_Utils.Utilities.BSEvents.OnLoad();
            BS_Utils.Utilities.BSEvents.lateMenuSceneLoadedFresh += OnLateMenuSceneLoadedFresh;

            // init sprites
            Base64Sprites.Init();
        }