mirror of
https://github.com/ppy/osu
synced 2025-01-07 06:40:05 +00:00
Open login overlay when notification asking for signing in to play multi is clicked
This commit is contained in:
parent
d5b7865ab8
commit
59410dbe3b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user