2018-04-13 17:19:50 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
2018-12-21 15:28:33 +08:00
|
|
|
using osu.Framework.Graphics.Shapes;
|
2018-04-13 17:19:50 +08:00
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Graphics;
|
2018-12-21 15:28:33 +08:00
|
|
|
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
|
|
|
|
2018-12-21 15:28:33 +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)
|
2018-12-21 15:28:33 +08:00
|
|
|
: 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,
|
|
|
|
},
|
2018-12-14 18:51:27 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|