private IEnumerator addForceEnabledVariantsPostcard(On.Celeste.LevelEnter.orig_Routine orig, LevelEnter self) { if (showForcedVariantsPostcard) { showForcedVariantsPostcard = false; // let's show a postcard to let the player know Extended Variants have been enabled. self.Add(forceEnabledVariantsPostcard = new Postcard(Dialog.Get("POSTCARD_EXTENDEDVARIANTS_FORCEENABLED"), "event:/ui/main/postcard_csides_in", "event:/ui/main/postcard_csides_out")); yield return(forceEnabledVariantsPostcard.DisplayRoutine()); forceEnabledVariantsPostcard = null; } // just go on with vanilla behavior (other postcards, B-side intro, etc) yield return(new SwapImmediately(orig(self))); }
private IEnumerator AddAltSideRemixTitle(On.Celeste.LevelEnter.orig_Routine orig, LevelEnter self) { var data = new DynData <LevelEnter>(self); var session = data.Get <Session>("session"); if (session.StartedFromBeginning && !data.Get <bool>("fromSaveData") && (GetModeMetaForAltSide(AreaData.Get(session.Area))?.ShowBSideRemixIntro ?? false)) { AltSideTitle title = new AltSideTitle(session); self.Add(title); Audio.Play("event:/ui/main/bside_intro_text"); yield return(title.EaseIn()); yield return(0.25f); yield return(title.EaseOut()); yield return(0.25f); } yield return(new SwapImmediately(orig(self))); }