protected override void PopIn() { base.PopIn(); lowPassFilter.CutoffTo(300, 100, Easing.OutCubic); this.FadeIn(enter_duration, Easing.OutQuint); this.ScaleTo(0.9f).Then().ScaleTo(1f, enter_duration, Easing.OutQuint); }
public override void OnEntering(IScreen last) { lowPassFilter.CutoffTo(1000, 1200, Easing.OutQuint); var displayDisclaimer = !config.Get <bool>(GamebosuSetting.DisableDisplayingThatAnnoyingDisclaimer); screenStack.Push(displayDisclaimer ? new DisclaimerSubScreen { Complete = () => screenStack.Push(new ListingSubScreen()) } : (GamebosuSubScreen) new ListingSubScreen()); base.OnEntering(last); }
public void TestLowPassSweep() { AddStep("Filter Sweep", () => { lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF).Then() .CutoffTo(0, 2000, Easing.OutCubic); }); waitTrackPlay(); AddStep("Filter Sweep (reverse)", () => { lowPassFilter.CutoffTo(0).Then() .CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF, 2000, Easing.InCubic); }); waitTrackPlay(); AddStep("Stop track", () => track.Stop()); }
/// <summary> /// Start the fail animation playing. /// </summary> /// <exception cref="InvalidOperationException">Thrown if started more than once.</exception> public void Start() { if (started) { throw new InvalidOperationException("Animation cannot be started more than once."); } started = true; this.TransformBindableTo(trackFreq, 0, duration).OnComplete(_ => { // Don't reset frequency as the pause screen may appear post transform, causing a second frequency sweep. RemoveFilters(false); OnComplete?.Invoke(); }); failHighPassFilter.CutoffTo(300); failLowPassFilter.CutoffTo(300, duration, Easing.OutCubic); failSample.Play(); track.AddAdjustment(AdjustableProperty.Frequency, trackFreq); track.AddAdjustment(AdjustableProperty.Volume, volumeAdjustment); applyToPlayfield(drawableRuleset.Playfield); drawableRuleset.Playfield.HitObjectContainer.FadeOut(duration / 2); if (config.Get <bool>(OsuSetting.FadePlayfieldWhenHealthLow)) { redFlashLayer.FadeOutFromOne(1000); } Content.Masking = true; Content.Add(new Box { Colour = Color4.Black, RelativeSizeAxes = Axes.Both, Depth = float.MaxValue }); Content.ScaleTo(0.85f, duration, Easing.OutQuart); Content.RotateTo(1, duration, Easing.OutQuart); Content.FadeColour(Color4.Gray, duration); // Will be restored by `ApplyToBackground` logic in `SongSelect`. Background?.FadeColour(OsuColour.Gray(0.3f), 60); }
/// <summary> /// Start the fail animation playing. /// </summary> /// <exception cref="InvalidOperationException">Thrown if started more than once.</exception> public void Start() { if (started) { throw new InvalidOperationException("Animation cannot be started more than once."); } started = true; this.TransformBindableTo(trackFreq, 0, duration).OnComplete(_ => { RemoveFilters(); OnComplete?.Invoke(); }); failHighPassFilter.CutoffTo(300); failLowPassFilter.CutoffTo(300, duration, Easing.OutCubic); failSample.Play(); track.AddAdjustment(AdjustableProperty.Frequency, trackFreq); applyToPlayfield(drawableRuleset.Playfield); drawableRuleset.Playfield.HitObjectContainer.FadeOut(duration / 2); if (config.Get <bool>(OsuSetting.FadePlayfieldWhenHealthLow)) { redFlashLayer.FadeOutFromOne(1000); } Content.Masking = true; Content.Add(new Box { Colour = Color4.Black, RelativeSizeAxes = Axes.Both, Depth = float.MaxValue }); Content.ScaleTo(0.85f, duration, Easing.OutQuart); Content.RotateTo(1, duration, Easing.OutQuart); Content.FadeColour(Color4.Gray, duration); }
protected override void PopIn() { base.PopIn(); lowPassFilter.CutoffTo(300, 100, Easing.OutCubic); }
protected override void PopIn() { base.PopIn(); this.FadeIn(PopupDialog.ENTER_DURATION, Easing.OutQuint); lowPassFilter.CutoffTo(300, 100, Easing.OutCubic); }
protected override void Confirm() { lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF); confirmSample?.Play(); base.Confirm(); }