Rename things yet again

This commit is contained in:
Bartłomiej Dach
2023-01-10 19:24:54 +01:00
parent 502478614a
commit 62e12277d8
34 changed files with 107 additions and 107 deletions

View File

@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Profile.Header
public partial class CentreHeaderContainer : CompositeDrawable
{
public readonly BindableBool DetailsVisible = new BindableBool(true);
public readonly Bindable<UserProfileData?> UserProfileData = new Bindable<UserProfileData?>();
public readonly Bindable<UserProfileData?> User = new Bindable<UserProfileData?>();
private OverlinedInfoContainer hiddenDetailGlobal = null!;
private OverlinedInfoContainer hiddenDetailCountry = null!;
@ -53,15 +53,15 @@ namespace osu.Game.Overlays.Profile.Header
{
new FollowersButton
{
UserProfileData = { BindTarget = UserProfileData }
User = { BindTarget = User }
},
new MappingSubscribersButton
{
UserProfileData = { BindTarget = UserProfileData }
User = { BindTarget = User }
},
new MessageUserButton
{
UserProfileData = { BindTarget = UserProfileData }
User = { BindTarget = User }
},
}
},
@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Profile.Header
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Size = new Vector2(40),
UserProfileData = { BindTarget = UserProfileData }
User = { BindTarget = User }
},
expandedDetailContainer = new Container
{
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Profile.Header
Child = new LevelProgressBar
{
RelativeSizeAxes = Axes.Both,
UserProfileData = { BindTarget = UserProfileData }
User = { BindTarget = User }
}
},
hiddenDetailContainer = new FillFlowContainer
@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Profile.Header
expandedDetailContainer.FadeTo(visible.NewValue ? 1 : 0, 200, Easing.OutQuint);
});
UserProfileData.BindValueChanged(data => updateDisplay(data.NewValue?.User));
User.BindValueChanged(user => updateDisplay(user.NewValue?.User));
}
private void updateDisplay(APIUser? user)