mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 11:02:57 +08:00
Use already existing message placeholder + localized string
This commit is contained in:
parent
0c85fd496f
commit
2c64db0628
@ -19,10 +19,11 @@ using osu.Framework.Input.Events;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Localisation;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Placeholders;
|
||||
using osu.Game.Scoring;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Screens.Ranking.Statistics;
|
||||
@ -208,13 +209,7 @@ namespace osu.Game.Screens.Ranking
|
||||
if (ScorePanelList.IsEmpty)
|
||||
{
|
||||
// This can happen if a beatmap part of a playlist hasn't been played yet.
|
||||
VerticalScrollContent.Add(new OsuSpriteText
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Font = OsuFont.GetFont(size: 32, weight: FontWeight.Regular),
|
||||
Text = "no scores yet!",
|
||||
});
|
||||
VerticalScrollContent.Add(new MessagePlaceholder(LeaderboardStrings.NoRecordsYet));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user