1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 14:37:30 +08:00
osu-lazer/osu.Game/Screens/Ranking/Pages/LocalLeaderboardPage.cs

44 lines
1.3 KiB
C#
Raw Normal View History

// 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-04-13 17:19:50 +08:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
2018-04-13 17:19:50 +08:00
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Scoring;
2018-04-13 17:19:50 +08:00
using osu.Game.Screens.Select.Leaderboards;
2018-11-20 15:51:59 +08:00
using osuTK;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Screens.Ranking.Pages
2018-04-13 17:19:50 +08:00
{
2018-12-27 14:30:02 +08:00
public class LocalLeaderboardPage : ResultsPage
2018-04-13 17:19:50 +08:00
{
2018-12-27 14:30:02 +08:00
public LocalLeaderboardPage(ScoreInfo score, WorkingBeatmap beatmap = null)
: base(score, beatmap)
2018-04-13 17:19:50 +08:00
{
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Children = new Drawable[]
{
new Box
{
2018-12-27 14:30:02 +08:00
Colour = colours.Gray6,
2018-04-13 17:19:50 +08:00
RelativeSizeAxes = Axes.Both,
},
new BeatmapLeaderboard
2018-04-13 17:19:50 +08:00
{
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
2018-11-30 15:11:09 +08:00
Beatmap = Beatmap.BeatmapInfo ?? Score.Beatmap,
2018-04-13 17:19:50 +08:00
Scale = new Vector2(0.7f)
}
};
}
}
}