2017-04-11 13:01:13 +08:00
|
|
|
// Copyright (c) 2007-2017 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;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Database;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Game.Modes.Scoring;
|
|
|
|
using osu.Game.Screens.Select.Leaderboards;
|
|
|
|
using OpenTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Ranking
|
|
|
|
{
|
2017-04-11 14:56:52 +08:00
|
|
|
internal class ResultsPageRanking : ResultsPage
|
2017-04-11 13:01:13 +08:00
|
|
|
{
|
2017-04-11 14:56:52 +08:00
|
|
|
public ResultsPageRanking(Score score, BeatmapInfo beatmap = null) : base(score, beatmap)
|
2017-04-11 13:01:13 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
Colour = colours.GrayE,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
|
|
|
new Leaderboard
|
|
|
|
{
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2017-04-11 14:56:52 +08:00
|
|
|
Beatmap = Beatmap ?? Score.Beatmap,
|
2017-04-11 13:01:13 +08:00
|
|
|
Scale = new Vector2(0.7f)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|