mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +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;
|
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:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user