1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00

Move text definition inside class

This commit is contained in:
Dean Herbert 2020-01-08 17:22:51 +09:00
parent 7f92cefe10
commit 6dd45e52ef
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ namespace osu.Game.Online.Leaderboards
break; break;
case PlaceholderState.NotLoggedIn: case PlaceholderState.NotLoggedIn:
replacePlaceholder(new LoginPlaceholder(@"Please sign in to view online leaderboards!")); replacePlaceholder(new LoginPlaceholder());
break; break;
case PlaceholderState.NotSupporter: case PlaceholderState.NotSupporter:

View File

@ -14,7 +14,7 @@ namespace osu.Game.Online.Placeholders
[Resolved(CanBeNull = true)] [Resolved(CanBeNull = true)]
private LoginOverlay login { get; set; } private LoginOverlay login { get; set; }
public LoginPlaceholder(string action) public LoginPlaceholder()
{ {
AddIcon(FontAwesome.Solid.UserLock, cp => AddIcon(FontAwesome.Solid.UserLock, cp =>
{ {
@ -22,7 +22,7 @@ namespace osu.Game.Online.Placeholders
cp.Padding = new MarginPadding { Right = 10 }; cp.Padding = new MarginPadding { Right = 10 };
}); });
AddText(action); AddText(@"Please sign in to view online leaderboards!");
} }
protected override bool OnMouseDown(MouseDownEvent e) protected override bool OnMouseDown(MouseDownEvent e)