2021-01-22 03:02:54 +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
|
|
|
|
|
|
2021-01-22 03:02:54 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2021-06-26 01:10:04 +08:00
|
|
|
|
using osu.Framework.Localisation;
|
2021-11-04 17:02:44 +08:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2021-07-17 21:18:45 +08:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2021-01-22 03:02:54 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Profile.Header.Components
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class MappingSubscribersButton : ProfileHeaderStatisticsButton
|
2021-01-22 03:02:54 +08:00
|
|
|
|
{
|
2021-11-04 17:02:44 +08:00
|
|
|
|
public readonly Bindable<APIUser> User = new Bindable<APIUser>();
|
2021-01-22 03:02:54 +08:00
|
|
|
|
|
2021-07-17 21:18:45 +08:00
|
|
|
|
public override LocalisableString TooltipText => FollowsStrings.MappingFollowers;
|
2021-01-22 03:02:54 +08:00
|
|
|
|
|
2021-01-22 04:39:19 +08:00
|
|
|
|
protected override IconUsage Icon => FontAwesome.Solid.Bell;
|
2021-01-22 03:02:54 +08:00
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
|
|
|
|
User.BindValueChanged(user => SetValue(user.NewValue?.MappingFollowerCount ?? 0), true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|