Rename UserProfile{ -> Data}

This commit is contained in:
Bartłomiej Dach
2023-01-09 17:37:28 +01:00
parent 4dd7727f71
commit fdf0d4bd62
30 changed files with 52 additions and 52 deletions

View File

@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class FollowersButton : ProfileHeaderStatisticsButton
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public override LocalisableString TooltipText => FriendsStrings.ButtonsDisabled;

View File

@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class LevelBadge : CompositeDrawable, IHasTooltip
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public LocalisableString TooltipText { get; private set; }

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class LevelProgressBar : CompositeDrawable, IHasTooltip
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public LocalisableString TooltipText { get; }

View File

@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class MappingSubscribersButton : ProfileHeaderStatisticsButton
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public override LocalisableString TooltipText => FollowsStrings.MappingFollowers;

View File

@ -15,7 +15,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class MessageUserButton : ProfileHeaderButton
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public override LocalisableString TooltipText => UsersStrings.CardSendMessage;

View File

@ -13,7 +13,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class OverlinedTotalPlayTime : CompositeDrawable, IHasTooltip
{
public readonly Bindable<UserProfile?> UserProfile = new Bindable<UserProfile?>();
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public LocalisableString TooltipText { get; set; }
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
UserProfile.BindValueChanged(updateTime, true);
}
private void updateTime(ValueChangedEvent<UserProfile?> userProfile)
private void updateTime(ValueChangedEvent<UserProfileData?> userProfile)
{
int? playTime = userProfile.NewValue?.User.Statistics?.PlayTime;
TooltipText = (playTime ?? 0) / 3600 + " hours";