2019-03-04 04:24:19 +00:00
|
|
|
// 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.
|
2018-11-10 16:39:02 +00:00
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2018-11-16 11:30:12 +00:00
|
|
|
using osu.Framework.Allocation;
|
2018-11-10 16:39:02 +00:00
|
|
|
using osu.Framework.Graphics;
|
2019-02-17 09:20:03 +00:00
|
|
|
using osu.Framework.Graphics.Containers;
|
2019-06-18 05:51:48 +00:00
|
|
|
using osu.Game.Tournament.Models;
|
2018-11-10 16:39:02 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Screens
|
|
|
|
{
|
2019-06-18 05:51:48 +00:00
|
|
|
public abstract partial class TournamentScreen : CompositeDrawable
|
2018-11-10 16:39:02 +00:00
|
|
|
{
|
2019-11-08 08:26:24 +00:00
|
|
|
public const double FADE_DELAY = 200;
|
|
|
|
|
2018-11-16 11:30:12 +00:00
|
|
|
[Resolved]
|
|
|
|
protected LadderInfo LadderInfo { get; private set; }
|
|
|
|
|
2019-06-18 05:51:48 +00:00
|
|
|
protected TournamentScreen()
|
2019-02-17 09:20:03 +00:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
2020-03-06 07:03:26 +00:00
|
|
|
|
|
|
|
FillMode = FillMode.Fit;
|
|
|
|
FillAspectRatio = 16 / 9f;
|
2019-02-17 09:20:03 +00:00
|
|
|
}
|
|
|
|
|
2019-11-08 08:26:24 +00:00
|
|
|
public override void Hide() => this.FadeOut(FADE_DELAY);
|
2018-11-10 16:39:02 +00:00
|
|
|
|
2019-11-08 08:26:24 +00:00
|
|
|
public override void Show() => this.FadeIn(FADE_DELAY);
|
2018-11-10 16:39:02 +00:00
|
|
|
}
|
|
|
|
}
|