mirror of
https://github.com/ppy/osu.git
synced 2024-12-25 01:12:58 +08:00
33 lines
860 B
C#
33 lines
860 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Tournament.Models;
|
|
|
|
namespace osu.Game.Tournament.Screens
|
|
{
|
|
public abstract class TournamentScreen : CompositeDrawable
|
|
{
|
|
public const double FADE_DELAY = 200;
|
|
|
|
[Resolved]
|
|
protected LadderInfo LadderInfo { get; private set; }
|
|
|
|
protected TournamentScreen()
|
|
{
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
FillMode = FillMode.Fit;
|
|
FillAspectRatio = 16 / 9f;
|
|
}
|
|
|
|
public override void Hide() => this.FadeOut(FADE_DELAY);
|
|
|
|
public override void Show() => this.FadeIn(FADE_DELAY);
|
|
}
|
|
}
|