Open login overlay when notification asking for signing in to play multi is clicked

This commit is contained in:
Lucas A 2019-04-06 18:05:13 +02:00
parent d5b7865ab8
commit 59410dbe3b

View File

@ -103,6 +103,9 @@ namespace osu.Game.Screens.Menu
[Resolved(CanBeNull = true)] [Resolved(CanBeNull = true)]
private NotificationOverlay notifications { get; set; } private NotificationOverlay notifications { get; set; }
[Resolved]
private LoginOverlay loginOverlay { get; set; }
[BackgroundDependencyLoader(true)] [BackgroundDependencyLoader(true)]
private void load(AudioManager audio, IdleTracker idleTracker, GameHost host) private void load(AudioManager audio, IdleTracker idleTracker, GameHost host)
{ {
@ -135,7 +138,12 @@ namespace osu.Game.Screens.Menu
notifications?.Post(new SimpleNotification notifications?.Post(new SimpleNotification
{ {
Text = "You gotta be logged in to multi 'yo!", Text = "You gotta be logged in to multi 'yo!",
Icon = FontAwesome.Solid.Globe Icon = FontAwesome.Solid.Globe,
Activated = () =>
{
loginOverlay.Show();
return true;
}
}); });
return; return;