Path: blob/master/osu.Game/Screens/OnlinePlay/Matchmaking/Match/MatchmakingSubScreen.cs
4919 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Screens; namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match { public abstract partial class MatchmakingSubScreen : Screen { public abstract PanelDisplayStyle PlayersDisplayStyle { get; } public abstract Drawable? PlayersDisplayArea { get; } protected MatchmakingSubScreen() { RelativePositionAxes = Axes.X; } public override void OnEntering(ScreenTransitionEvent e) { base.OnEntering(e); this.FadeInFromZero(200); } public override void OnSuspending(ScreenTransitionEvent e) { base.OnSuspending(e); this.FadeOutFromOne(200); } public override void OnResuming(ScreenTransitionEvent e) { base.OnResuming(e); this.FadeInFromZero(200); } public override bool OnExiting(ScreenExitEvent e) { if (base.OnExiting(e)) return true; this.FadeOutFromOne(200); return false; } } }