2017-04-11 05:01:13 +00: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;
|
2017-04-18 06:16:50 +00:00
|
|
|
using osu.Game.Beatmaps;
|
2017-04-11 05:01:13 +00:00
|
|
|
using osu.Game.Graphics;
|
2017-04-18 06:16:50 +00:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
2017-04-11 05:01:13 +00:00
|
|
|
using osu.Game.Screens.Select.Leaderboards;
|
|
|
|
using OpenTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Ranking
|
|
|
|
{
|
2017-04-11 06:56:52 +00:00
|
|
|
internal class ResultsPageRanking : ResultsPage
|
2017-04-11 05:01:13 +00:00
|
|
|
{
|
2017-04-18 06:16:50 +00:00
|
|
|
public ResultsPageRanking(Score score, WorkingBeatmap beatmap = null) : base(score, beatmap)
|
2017-04-11 05:01:13 +00: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-18 06:16:50 +00:00
|
|
|
Beatmap = Beatmap.BeatmapInfo ?? Score.Beatmap,
|
2017-04-11 05:01:13 +00:00
|
|
|
Scale = new Vector2(0.7f)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|