1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-17 12:12:54 +08:00
osu-lazer/osu.Game/Screens/Ranking/Pages/RankingResultsPage.cs

44 lines
1.2 KiB
C#
Raw Normal View History

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;
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
{
public class RankingResultsPage : ResultsPage
2018-04-13 17:19:50 +08:00
{
public RankingResultsPage(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
{
Colour = colours.GrayE,
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)
}
};
}
}
}