mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Move text definition inside class
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user