1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 09:27:23 +08:00
osu-lazer/osu.Game/Screens/Ranking/ResultsPageRanking.cs

43 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.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Screens.Select.Leaderboards;
2018-11-20 15:51:59 +08:00
using osuTK;
2018-04-13 17:19:50 +08:00
using osu.Framework.Graphics.Shapes;
2018-11-28 15:12:57 +08:00
using osu.Game.Scoring;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Screens.Ranking
{
public class ResultsPageRanking : ResultsPage
{
2018-11-30 14:18:52 +08:00
public ResultsPageRanking(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)
}
};
}
}
}