2020-01-05 04:09:40 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-01-05 04:09:40 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2020-01-05 02:25:49 +08:00
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2022-03-02 13:14:44 +08:00
|
|
|
|
using osu.Framework.Localisation;
|
2020-01-05 02:25:49 +08:00
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Online.Placeholders
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public sealed partial class LoginPlaceholder : ClickablePlaceholder
|
2020-01-05 02:25:49 +08:00
|
|
|
|
{
|
2020-03-07 05:12:02 +08:00
|
|
|
|
[Resolved(CanBeNull = true)]
|
|
|
|
|
private LoginOverlay login { get; set; }
|
2020-01-05 02:25:49 +08:00
|
|
|
|
|
2022-03-02 13:14:44 +08:00
|
|
|
|
public LoginPlaceholder(LocalisableString actionMessage)
|
2020-03-07 05:12:02 +08:00
|
|
|
|
: base(actionMessage, FontAwesome.Solid.UserLock)
|
2020-01-05 02:25:49 +08:00
|
|
|
|
{
|
2020-03-07 05:12:02 +08:00
|
|
|
|
Action = () => login?.Show();
|
2020-01-05 02:25:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|