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

@ -15,7 +15,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class MessageUserButton : ProfileHeaderButton
{
public readonly Bindable<UserProfileData?> UserProfileData = new Bindable<UserProfileData?>();
public readonly Bindable<UserProfileData?> User = new Bindable<UserProfileData?>();
public override LocalisableString TooltipText => UsersStrings.CardSendMessage;
@ -48,12 +48,12 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
if (!Content.IsPresent) return;
channelManager?.OpenPrivateChannel(UserProfileData.Value?.User);
channelManager?.OpenPrivateChannel(User.Value?.User);
userOverlay?.Hide();
chatOverlay?.Show();
};
UserProfileData.ValueChanged += e =>
User.ValueChanged += e =>
{
var user = e.NewValue?.User;
Content.Alpha = user != null && !user.PMFriendsOnly && apiProvider.LocalUser.Value.Id != user.Id ? 1 : 0;