mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Add more descriptive description and download button when statistics not available
This commit is contained in:
parent
fb9d2cb05c
commit
f4d2c2684d
@ -75,7 +75,21 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
return;
|
||||
|
||||
if (newScore.HitEvents == null || newScore.HitEvents.Count == 0)
|
||||
content.Add(new MessagePlaceholder("Score has no statistics :("));
|
||||
content.Add(new FillFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Direction = FillDirection.Vertical,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new MessagePlaceholder("Extended statistics are only available after watching a replay!"),
|
||||
new ReplayDownloadButton(newScore)
|
||||
{
|
||||
Scale = new Vector2(1.5f),
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
},
|
||||
}
|
||||
});
|
||||
else
|
||||
{
|
||||
spinner.Show();
|
||||
|
Loading…
Reference in New Issue
Block a user