1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 10:57:26 +08:00
osu-lazer/osu.Game.Tournament/Screens/TournamentScreen.cs

31 lines
861 B
C#
Raw Normal View History

2023-06-23 00:37:25 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2019-03-04 12:24:19 +08:00
// See the LICENCE file in the repository root for full licence text.
2018-11-16 19:30:12 +08:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2019-02-17 17:20:03 +08:00
using osu.Framework.Graphics.Containers;
2019-06-18 13:51:48 +08:00
using osu.Game.Tournament.Models;
namespace osu.Game.Tournament.Screens
{
2022-11-24 13:32:20 +08:00
public abstract partial class TournamentScreen : CompositeDrawable
{
2019-11-08 16:26:24 +08:00
public const double FADE_DELAY = 200;
2018-11-16 19:30:12 +08:00
[Resolved]
2023-06-23 00:37:25 +08:00
protected LadderInfo LadderInfo { get; private set; } = null!;
2018-11-16 19:30:12 +08:00
2019-06-18 13:51:48 +08:00
protected TournamentScreen()
2019-02-17 17:20:03 +08:00
{
RelativeSizeAxes = Axes.Both;
FillMode = FillMode.Fit;
FillAspectRatio = 16 / 9f;
2019-02-17 17:20:03 +08:00
}
2019-11-08 16:26:24 +08:00
public override void Hide() => this.FadeOut(FADE_DELAY);
2019-11-08 16:26:24 +08:00
public override void Show() => this.FadeIn(FADE_DELAY);
}
}