Ejemplo n.º 1
0
        private static bool AudioOnSetMusic(On.Celeste.Audio.orig_SetMusic orig, string path, bool startPlaying, bool allowFadeOut)
        {
            settingMusic = true;
            bool result = orig(path, startPlaying, allowFadeOut);

            settingMusic = false;
            return(result);
        }
Ejemplo n.º 2
0
        private static bool OnSetMusic(On.Celeste.Audio.orig_SetMusic orig, string path, bool startPlaying, bool allowFadeOut)
        {
            // while the in-game chapter panel / journal is open, block all music changes except for muting it (which happens when entering a level).
            if (path != null && overworldWrapper?.Scene == Engine.Scene)
            {
                return(false);
            }

            return(orig(path, startPlaying, allowFadeOut));
        }