public override bool OnExiting(IScreen next) { if (ModSelect.State.Value == Visibility.Visible) { ModSelect.Hide(); return(true); } if (base.OnExiting(next)) { return(true); } beatmapInfoWedge.Hide(); this.FadeOut(100); FilterControl.Deactivate(); if (Beatmap.Value.Track != null) { Beatmap.Value.Track.Looping = false; } return(false); }
public override bool OnBackButton() { if (ModSelect.State.Value == Visibility.Visible) { ModSelect.Hide(); return(true); } return(false); }
protected override void OnResuming(Screen last) { player = null; if (removeAutoModOnResume) { var autoType = Ruleset.Value.CreateInstance().GetAutoplayMod().GetType(); ModSelect.DeselectTypes(new[] { autoType }, true); removeAutoModOnResume = false; } base.OnResuming(last); }
public override void OnSuspending(IScreen next) { ModSelect.Hide(); BeatmapOptions.Hide(); this.ScaleTo(1.1f, 250, Easing.InSine); this.FadeOut(250); FilterControl.Deactivate(); base.OnSuspending(next); }
public override void OnSuspending(IScreen next) { ModSelect.SelectedMods.UnbindFrom(selectedMods); ModSelect.Hide(); BeatmapOptions.Hide(); music.CurrentTrack.Looping = false; this.ScaleTo(1.1f, 250, Easing.InSine); this.FadeOut(250); FilterControl.Deactivate(); base.OnSuspending(next); }
public override void OnResuming(IScreen last) { base.OnResuming(last); player = null; if (removeAutoModOnResume) { var autoType = Ruleset.Value.CreateInstance().GetAutoplayMod()?.GetType(); if (autoType != null) { ModSelect.DeselectTypes(new[] { autoType }, true); } removeAutoModOnResume = false; } }