Rename UserProfileData-related symbols

This commit is contained in:
Bartłomiej Dach
2023-01-09 17:46:08 +01:00
parent fdf0d4bd62
commit 4dec3cae57
34 changed files with 106 additions and 106 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Profile
{
private UserCoverBackground coverContainer = null!;
public Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
public Bindable<UserProfileData?> UserProfileData = new Bindable<UserProfileData?>();
private CentreHeaderContainer centreHeaderContainer;
private DetailHeaderContainer detailHeaderContainer;
@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Profile
{
ContentSidePadding = UserProfileOverlay.CONTENT_X_MARGIN;
UserProfile.ValueChanged += e => updateDisplay(e.NewValue);
UserProfileData.ValueChanged += e => updateDisplay(e.NewValue);
TabControl.AddItem(LayoutStrings.HeaderUsersShow);
@ -72,34 +72,34 @@ namespace osu.Game.Overlays.Profile
new TopHeaderContainer
{
RelativeSizeAxes = Axes.X,
UserProfile = { BindTarget = UserProfile },
UserProfileData = { BindTarget = UserProfileData },
},
centreHeaderContainer = new CentreHeaderContainer
{
RelativeSizeAxes = Axes.X,
UserProfile = { BindTarget = UserProfile },
UserProfileData = { BindTarget = UserProfileData },
},
detailHeaderContainer = new DetailHeaderContainer
{
RelativeSizeAxes = Axes.X,
UserProfile = { BindTarget = UserProfile },
UserProfileData = { BindTarget = UserProfileData },
},
new MedalHeaderContainer
{
RelativeSizeAxes = Axes.X,
UserProfile = { BindTarget = UserProfile },
UserProfileData = { BindTarget = UserProfileData },
},
new BottomHeaderContainer
{
RelativeSizeAxes = Axes.X,
UserProfile = { BindTarget = UserProfile },
UserProfileData = { BindTarget = UserProfileData },
},
}
};
protected override OverlayTitle CreateTitle() => new ProfileHeaderTitle();
private void updateDisplay(UserProfileData? userProfile) => coverContainer.User = userProfile?.User;
private void updateDisplay(UserProfileData? data) => coverContainer.User = data?.User;
private partial class ProfileHeaderTitle : OverlayTitle
{