mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Add more descriptive description and download button when statistics not available
This commit is contained in:
@ -75,7 +75,21 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (newScore.HitEvents == null || newScore.HitEvents.Count == 0)
|
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
|
else
|
||||||
{
|
{
|
||||||
spinner.Show();
|
spinner.Show();
|
||||||
|
Reference in New Issue
Block a user