add tooltips

This commit is contained in:
cdwcgt 2024-11-01 14:43:00 +08:00
parent 3bd116cd65
commit 9e4c382a61
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -25,7 +25,26 @@ namespace osu.Game.Overlays.Profile.Header.Components
// the number of friends obtained is stored and modified locally.
private int followerCount;
public override LocalisableString TooltipText => FriendsStrings.ButtonsDisabled;
public override LocalisableString TooltipText
{
get
{
switch (status.Value)
{
case FriendStatus.Self:
return FriendsStrings.ButtonsDisabled;
case FriendStatus.None:
return FriendsStrings.ButtonsAdd;
case FriendStatus.NotMutual:
case FriendStatus.Mutual:
return FriendsStrings.ButtonsRemove;
}
return FriendsStrings.TitleCompact;
}
}
protected override IconUsage Icon => FontAwesome.Solid.User;