Exemplo n.º 1
0
        public void OnApplicationStart()
        {
            if (ChromaToggleInstalled())
            {
                ChromaLogger.Log("ChromaToggle Detected, Disabling ChromaLite.");
                ChromaLogger.Log("ChromaToggle contains all features (and many more) of ChromaLite.");
                CTInstalled = true;
                return;
            }

            harmony.PatchAll(System.Reflection.Assembly.GetExecutingAssembly());
            //ChromaLogger.Log("Harmonized");

            SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged;
            SceneManager.sceneLoaded        += SceneManager_sceneLoaded;
        }
Exemplo n.º 2
0
        public void OnApplicationStart()
        {
            if (IsModInstalled("ChromaToggle") || IsModInstalled("Chroma"))
            {
                ChromaLogger.Log("ChromaToggle/Chroma Detected, Disabling ChromaLite.");
                ChromaLogger.Log("ChromaToggle/Chroma contains all features (and many more) of ChromaLite.");
                return;
            }

            harmony.PatchAll(System.Reflection.Assembly.GetExecutingAssembly());
            //ChromaLogger.Log("Harmonized");

            // Register capabilities for songcore
            if (IsModInstalled("SongCore"))
            {
                RegisterCapabilities();
            }
        }
Exemplo n.º 3
0
        public static void ReadMapData(BeatmapData beatmapData)
        {
            ChromaLogger.Log("Reading event data... ");

            //Events
            BeatmapEventData[] bevData       = beatmapData.beatmapEventData;
            ChromaColourEvent  unfilledEvent = null;

            for (int i = bevData.Length - 1; i >= 0; i--)
            {
                try {
                    //ChromaLogger.Log("Event data: " + i);
                    ChromaEvent cLight = ApplyCustomEvent(bevData[i], ref unfilledEvent);
                    //if (cLight != null) ChromaLogger.Log("Custom Event " + cLight.GetType() + " found."); //lets not destroy the log
                } catch (Exception e) {
                    ChromaLogger.Log(e);
                    continue;
                }
            }
        }