mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Move text definition inside class
This commit is contained in:
parent
7f92cefe10
commit
6dd45e52ef
@ -151,7 +151,7 @@ namespace osu.Game.Online.Leaderboards
|
||||
break;
|
||||
|
||||
case PlaceholderState.NotLoggedIn:
|
||||
replacePlaceholder(new LoginPlaceholder(@"Please sign in to view online leaderboards!"));
|
||||
replacePlaceholder(new LoginPlaceholder());
|
||||
break;
|
||||
|
||||
case PlaceholderState.NotSupporter:
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Online.Placeholders
|
||||
[Resolved(CanBeNull = true)]
|
||||
private LoginOverlay login { get; set; }
|
||||
|
||||
public LoginPlaceholder(string action)
|
||||
public LoginPlaceholder()
|
||||
{
|
||||
AddIcon(FontAwesome.Solid.UserLock, cp =>
|
||||
{
|
||||
@ -22,7 +22,7 @@ namespace osu.Game.Online.Placeholders
|
||||
cp.Padding = new MarginPadding { Right = 10 };
|
||||
});
|
||||
|
||||
AddText(action);
|
||||
AddText(@"Please sign in to view online leaderboards!");
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user