mirror of
https://github.com/ppy/osu
synced 2024-12-18 04:46:09 +00:00
add tooltips
This commit is contained in:
parent
3bd116cd65
commit
9e4c382a61
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user